Amazon API Gateway Supports Request/Response Parameters and Status Overrides

Posted on: Jul 12, 2018

Amazon API Gateway now supports overriding request/response parameters and response status without modifying backend API code.

You can now remap response status code based on the contents of the body. You can also override response headers as well as request headers, query strings, and path parameters based on the contents of the body, other parameters, or status code. For example, if your legacy backend API returns a 200 HTTP status code with body content of “Input field out of range”, you can now remap the API to return a status code of 4xx. Visit our documentation to learn more about request/response parameters and status overrides.

This feature is available in all regions where API Gateway is available. To see all regions where API Gateway is available, see the AWS region table.