You can override RESTEasy built-in exceptions by writing an
ExceptionMapper for the exception. You can also write an ExceptionMapper for any exception thrown, including WebApplicationException.