Closed bluemix closed 4 years ago
That was done purposely to adhere to JSON RPC protocol in order to have a uniform error schema, as for now it's not possible to change the status code for responses whose request's content type is application/json
so doing so would make these request have a different error schema.
Am closing this for now due to this
That was done purposely to adhere to JSON RPC protocol in order to have a uniform error schema, as for now it's not possible to change the status code for responses whose request's content type is
application/json
so doing so would make these request have a different error schema.
HTTP 200 is meant a success, otherwise, there is an error. So, I've changed
error_response
to return HTTP 400 in its JSON response.