Hi all,

This is related to the mail thread subjected as “[Architecture]API schema
based request/response validator for Microgateway”. I’m validating
requests/responses coming to the microgateway and send error messages to
the client if the request/response is invalid.

When a client sends a request to the microgateway if the request is invalid
I’m sending an error message with the HTTP status code 422(Unprocessable
entity) to the client. And also I’m doing the response validation. If the
response coming from the backend is invalid I send an error message to the
client. I need to know what will be the most appropriate HTTP status code
to be included in the error if the response is invalid.

Thank you!

-- 

*Shalki Wenushika*
*Software Engineering Intern*
WSO2  (University of Moratuwa)
*mobile *: *+94 716792399* |   *email *:
<http://c.content.wso2.com/signatures/wso2-signature-general.png>
wenush...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to