HTTP status code on invalid parameters


When using SimpleIO in a Zato service, Zato does checks on the input, which is quite convenient.
However, when the input is wrong (e.g. missing parameter) the http status code that is produced is 500.
Imo a 400 status code would be better in this case.

Regards, Jan

Hi @jjmurre,

yes, this make sense - can you please open a ticket in GitHub?

The reason it works the way it does now is that SimpleIO can handle both REST and SOAP clients and the latter will typically ignore status codes other than 200 and 500.

But you are right that it should be possible to configure it in one’s environment to another value - thanks for the suggestion!

I think this is a duplicate of the one I raised -