HTTP Status Code

Contents

Overview

This filter is responsible for setting the HTTP status code on response messages. This enables the 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 failed, 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 Enterprise 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

Enter a name for the filter in the Name field on the HTTP Status filter configuration screen.

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