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

By J. on 15 Nov 2017

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.

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

J.16 Nov 2017

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

Ok, got your point. +1 (-: