hubmapconsortium / aws-api-gateway

API definitions, Lambda functions/authorizers/layer, and documentations to work with AWS API Gateway
1 stars 0 forks source link

Useful message for 500 error on search-api payload size over 10MB #3

Closed yuanzhou closed 2 years ago

yuanzhou commented 2 years ago

Currently we have custom response template for 401 and 403 because they are integrated with the lambda authorizers. The 500 error uses default template even with errors due to payload size. If we can't return a useful message at the API Gateway level, we can let search-api return it.