REST service instance has a settings “Break on error” and the documentation said
When True displays an error dialog if calling the service results in a non-success response. When False no error is displayed. In either case the HttpResponseCode return property contains any errors.
We have to use with false because business errors comes other than 200 response code. The problem is, if the result is other then 200 the HttpResponseCode always 0.
It seems to be a bug or the documentation is not valid.
Do you have any suggestions?