+

Search Tips   |   Advanced Search

AJAX proxy status codes

The AJAX proxy responds to requests by defined status codes. Possible errors that can occur in the proxy are mapped to the corresponding HTTP status codes.

By default, the AJAX proxy does not forward an HTTP status code that it receives from the target host. Only 2xx and 3xx status codes are directly forwarded to the client. If the proxy receives an 4xx error code, it will always return a 404 'Not Found' error instead. We can change this behavior using the forward-http-errors configuration parameter. For more details about this parameter refer to the topic about General configuration parameters.

The proxy returns its response with one of the following status codes:

    200 OK
    The request was accepted by the proxy and the target server returned a response with a status code 200. The request complied with one of the access policies specified in the proxy configuration.

    400 Bad Request
    The proxy returns this code if the syntax of the request was incorrect.

    403 Forbidden
    The proxy returns this code in either of the following two cases:

    • The request was not accepted by the proxy, that is the proxy found no matching access policy that grants access to the target server.

    • Basic authentication failed.

    404 Not found
    The proxy accepted the request, but the target server either returned status code 404 itself or a different 4xx error code.

    302 Found
    The authentication was successful.


Parent The programming model for using the AJAX proxy