we are looking for guidance for an activity related to Apicurio projects that are writing
a Quarkus based app leveraging RestEasy.
We have been asked to customize the default error responses, like the following:
`reason: "javax.ws.rs.NotAllowedException: RESTEASY003650: No resource method found
for DELETE, return 405 with Allow header"`
So to have them translated to business-specific messages.
We have successfully used Exception mappers are application layer, but it seems that if an
error comes from the platform then the application's exception mapper is not called.
So for things like authentication failures, or when trying to access an API endpoint that
doesn't exist, or calling an existing API with the wrong Content-Type - these are
Reasteasy errors that don't go through the mapper.
We are thus consulting the experts here to understand what is supposed to be to idiomatic
way to obtain this in RestEasy?
Show replies by date
Do you have an example of the ExceptionMapper?