Reputation: 205
API gateway has a timeout upper limit of the 30s and it's getting triggered in our application use case. I want to pass on custom messages in place of request time out to end-user so that the end-user can take the next set of actions.
I have integration with the Lambda function.
Upvotes: 1
Views: 1020
Reputation: 238687
You can use gateway responses.
There you will find Integration Timeout
which you can edit and provide your own message, e.g.:
{"message": "my custom message"}
Don't forget to re-deploy your stage after changes.
Upvotes: 1