API Management Versions 7.5.X And 7.6.X Reached End Of Support In November 2020. Please Contact Axway Support To Discuss Which Options Are Available To You.

HTTP status code

Overview

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

For example, if a Relative Path filter fails, it might 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 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

See also HTTP redirect.

Configuration

Name:
Enter an appropriate name for this filter to display in a policy.

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

Related Links