Response Status Code
Match a set or range of HTTP response codes.
How does it work?
This criterion lets you match based on the HTTP response status code. You can add individual codes or a range of codes that you either want to match or not.
Operators
You can select the following logical conditions:
Value | The Rule is True When... |
---|---|
is one of | the response includes any of the specified status codes. |
is not one of | the response doesn't include any of the specified status codes. |
is in range | the response includes a status code from the indicated range. |
is not in range | the response doesn't include a status code from the indicated range. |
Fields
Depending on the operator you select, you can enter individual codes in a text field or provide start and end values to specify a range of codes for the match.
If you add individual status codes, enter a single status code or a list of codes separated by spaces. For example, 400 500
.
You can also use the text field to create a mixed condition. For example, by entering 400 500:504
, you may set your behavior to serve alternative content in case the origin responds with the status codes of 400 or 500 through 504.
Updated about 3 years ago