added ability to pass an optional custom response body formatted
Additional context
we have a standard response for all errors, and the default one doesn't meet our requirements, so added the ability to pass a format the same way as an error formatter
Description
added ability to pass an optional custom response body formatted
Additional context
we have a standard response for all errors, and the default one doesn't meet our requirements, so added the ability to pass a format the same way as an error formatter