0
 Followers
4
 Likes

Thrown userexceptions should automatically go to a 400 status code, instead of a 500 in exposed REST

Integration
On our radar

When exposing REST api, you normally call already defined user-actions.

They can throw a user-exception but those user exceptions are redirected to a 500 Internal Server Error.

Imho that is a wrong design, because they are more of type 400 Bad Request.



Created on 15 Nov 2017
Comments (3)

You can configure this yourself right? Catch the user exceptions and set status code 400?

Of course, That means in every method you need to catch the "userexceptions" and setting the status.


Ok, got your point. +1 (-:

views
148
Followers
0