HTTP Routing Response Codes

When HTTP routing fails, the gateway includes one of the following reason codes in the logged message:
gateway83
When HTTP routing fails, the
Layer7 API Gateway
includes one of the following reason codes in the logged message:
Code
Meaning
Description
-1
Host Not Found
The Server referenced in the URL cannot be reached. This code can be returned if either the host does not exist or the host is simply down.
-2
Bad URL
The URL is incorrect. This could be caused by an invalid character in the URL, such as "#".
-3
Connection timeout
An initial message was sent to the URL but no response was received before the connection timeout expired. The connection timeout value is defined in the assertion properties.
-4
Read timeout
One of packets being received from the URL took longer than the read timeout value to be received. The read timeout value is defined in the assertion properties.
-5
Undefined
An unknown type of error has occurred (for example, an invalid response).
(1) You can also access this reason code by using the
${httpRouting.reasonCode}
context variable. (2) When the HTTP routing succeeds, this variable returns the HTTP status, which is often the same as
${response.http.status}
.