Right now HttpErrorExceptionMapper always renders a HTML error, which is not the best when the request is not done by a browser.
Right now HttpErrorExceptionMapper always renders a HTML error, which is not the best when the request is not done by a browser.