HTTP Status Code

Overview

This filter sets the HTTP status code on response messages. This enables an administrator to ensure that a more meaningful response is sent to the client in the case of an error or anomaly occurring in a configured policy.

For example, if a Relative Path filter fails, it may be useful to return a 503 Service Unavailable response. Similarly, if a user does not present identity credentials when attempting to access a protected resource, you can configure the API Gateway to return a 401 Unauthorized response to the client.

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

Configuration

Name:

Enter an appropriate name for this filter.

HTTP response code status:

Enter the status code returned to the client. For a complete list of status codes, see the HTTP Specification.