Configure API response error messages

How I can modify the response error message that are generated in apigateway lambda integration?
The format is not very standard and I would like to have error responses using this format:
“errors”: [
“detail”: “This request could not be authorized.”
Thank you advance

1 Like

This might help It’s been a while since I watched it but I seem to remember he had a solution.