Contents
This filter is responsible for verifying the HTTP status code in a response message. This enables you to filter messages based on their HTTP status code. For example, if the incoming message matches matches the specified HTTP status code, you could route the message to a specified service, otherwise continue in the policy.
HTTP status codes are returned in the status-line of an HTTP response. The following are some typical examples:
HTTP/1.1 200 OK HTTP/1.1 400 Bad Request HTTP/1.1 500 Internal Server Error
For details on how to set an HTTP status code in a response message, see the HTTP status code topic.
You can verify the HTTP status code using either of the following options:
Option | Description |
---|---|
HTTP status in following range |
Select an HTTP status code range from the drop-down list (for example,
Success Code 2xx ).
|
HTTP status equals |
Specify the status code in the field provided (for example,
500 for an internal server error).
|
For a complete list of status codes, see the