View a markdown version of this page

WafResponseInspection - Amazon Lightsail

WafResponseInspection

Describes the HTTP status codes that your application returns to indicate successful and failed attempts. The Web Application Firewall (WAF) rule group uses these status codes to track successful and failed attempts.

Contents

failureCodes

The HTTP status codes that indicate a failed attempt (for example, 401).

Constraints:

  • Must contain from 1 to 10 status codes.

  • Each status code must be from 0 to 999.

  • Can't contain a status code that is also in successCodes.

Type: Array of integers

Required: No

successCodes

The HTTP status codes that indicate a successful attempt (for example, 200).

Constraints:

  • Must contain from 1 to 10 status codes.

  • Each status code must be from 0 to 999.

  • Can't contain a status code that is also in failureCodes.

Type: Array of integers

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: