6.17.5 Error Formatting

Micronaut produces error response bodies via beans of type ErrorResponseProcessor.

The default response body is vnd.error, however you can create your own implementation of type ErrorResponseProcessor to control the responses.

If customization of the response other than items related to the errors is desired, the exception handler that is handling the exception needs to be overridden.