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.
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.