Sorry for this dumb question, but I tried everything.
I have AWS API Gateway from Lambda function, I need to return only HTTP 200 code without body. If the lambda returns an empty string, the body displays "" (2 quotes). If lambda returns null, the body displays the word null.
What is the catch? How to return an empty body?
For information, I use the Slack dash command to call the API. Thus, the call returns HTTP 200 OK, and the result is sent to POST in the response URL; therefore, processing can be performed after the HTTP result in order to avoid timeout problems.
source share