Changed the way the Unauthorized access exception is show. Now it is written on the response headers the error code and the message.