Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Supported status codes for custom responses

Focus mode
Supported status codes for custom responses - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced

This section lists the status codes that you can use in a custom response. For detailed information about HTTP status codes, see Status Codes by the Internet Engineering Task Force (IETF) and List of HTTP status codes on Wikipedia.

The following are the HTTP status codes that AWS WAF supports for custom responses.

  • 2xx Successful

    • 200OK

    • 201Created

    • 202Accepted

    • 204No Content

    • 206Partial Content

  • 3xx Redirection

    • 300Multiple Choices

    • 301Moved Permanently

    • 302Found

    • 303See Other

    • 304Not Modified

    • 307Temporary Redirect

    • 308Permanent Redirect

  • 4xx Client Error

    • 400Bad Request

    • 401Unauthorized

    • 403Forbidden

    • 404Not Found

    • 405Method Not Allowed

    • 408Request Timeout

    • 409Conflict

    • 411Length Required

    • 412Precondition Failed

    • 413Request Entity Too Large

    • 414Request-URI Too Long

    • 415Unsupported Media Type

    • 416Requested Range Not Satisfiable

    • 421Misdirected Request

    • 429Too Many Requests

  • 5xx Server Error

    • 500Internal Server Error

    • 501Not Implemented

    • 502Bad Gateway

    • 503Service Unavailable

    • 504Gateway Timeout

    • 505HTTP Version Not Supported

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.