Let’s say I have a lambda function to POST to a path as following:
events:
- http:
path: /myPath
method: post
how do I provide a default error message for non POST methods? When I make a GET on /myPath
I get an ugly api gateway error.