Error handling in REST API with JAX-RS
问题 The task: Instead of receiving general HTTP 500 Internal Server Error in my stacktrace and the same horrible stacktrace on the client side I want to see my customized message with another statuscode ( 403 for example), that it will be much clearer for the developer, what has happend. And add some message to User about the Exception. Here are couple of changed classes from my application: SERVER PART: AppException.class - all my Server Response exceptions (before giving back to client) I want