Override built-in exceptions
27.3. Overriding Resteasy Builtin Exceptions You may override Resteasy built-in exceptions by writing an ExceptionMapper for the exception. For that matter, you can write an ExceptionMapper for any thrown exception including WebApplicationException