proxy-http-response

This command controls whether the multiprotocol gateway passes the response code from the server to the client.

Syntax

proxy-http-response on

proxy-http-response off

Parameters

on
Passes the response code from the server to the client.
off
Does not pass the response code from the server to the client. This setting is the default value.

Guidelines

The proxy-http-response command controls whether to force the multiprotocol gateway to pass the response code from the server to the client.

The multiprotocol gateway can pass response codes like HTTP 200 and HTTP 500 from the server to the client. With the proxy-http-response on command, the multiprotocol gateway passes all response codes from the server to the client without modification. However, if an error occurs when the multiprotocol gateway runs the response rule, the multiprotocol gateway does not pass the response code but returns the default error code HTTP 500. If you require the multiprotocol gateway to pass the response code in the error condition, set the var://service/mpgw/proxy-http-response service variable to 1 in the request or response rule.

If you set a custom response code in the error rule with the var://service/error-protocol-response service variable, the multiprotocol gateway passes this custom response code.