I have an AWS API Gateway installation served by the Python Lambda function. For successful responses, Lambda returns a form response:
"200:{\"somekey\": \"somevalue\"}"
By default, the integration response settings in the gateway console use only one rule configured using the Lambda Error Regex of. * matching with answer to 200. This works fine.
The problem is that I am trying to change this value to 200. * (in order to include more specific codes in the future). Now i get
{"message": "Internal server error"}
every time I hit the gateway with any request (the result is 200 or not).
CloudWatch does not record error logs.

I want to know how I can successfully convert Lambda outputs to HTTP status codes in the AWS API Gateway.
source share