I understand that by design, API Gateway maps 429 errors from Lambda to 500 responses. Is there a way to map 429 to something else like 202? I tried to create an integration response mapping from this regex: .* which should map virtually everything to my defined status code, but i still receive 500 errors, from the API gateway.
Pasting my response from the AWS Forum post:
There is no way to map Lambda's 429 to any status code. It will always be considered as 500. Curious to know, why do you want to map 429 to 202 (which means 'Accepted')?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With