Open terrywarwar opened 4 years ago
Good question. The only easy way to do it right now is to have the entire function fail (panic()
). However, in this case API Gateway will return 504 or 502. Unfortunately because of the way API Gateway and Lambda work together it is very hard to throw an error in the Lambda function to have it recorded as a Lambda execution error and also have API Gateway return a human-readable response.