Cannot modify Microservice API return codes

When you use the microservice API with some validation rules on the input (for example to create a case), and the validation rule fails, the API returns HTTP 500 Internal Server Error.

Our specification stipulates that we have to return 400 Bad Request. 
How can we achieve this ?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

December 15, 2016 - 1:29am

Please share log files to find the root cause.