Skip to main content

附录:网关返回信息列表

  1. Headers
NameDesc
X-Host-Override
X-Orchsym-Proxy-Latency (X-Kong-Proxy-Latency)the time in milliseconds between Kong receiving the request from the client and sending the request to your upstream service
X-Orchsym-Upstream-Latency (X-Kong-Upstream-Latency)the time in milliseconds that Kong was waiting for the first byte of the upstream service response
X-Orchsym-Upstream-Status (X-Kong-Upstream-Status)
X-Consumer-ID
X-Consumer-Custom-ID
X-Consumer-Username
X-Credential-Username
X-Consumer-Groups
X-Authenticated-Groups
X-Forwarded-Host
X-Forwarded-Prefix
X-Anonymous-Consumer
Via
Server
  1. Message Desc
Status_codeMessage_infoDescExample
400Bad request
408Request timeout
411Length required
412Precondition failed
413Payload too large
414URI too long
417Expectation failed
494Request Header Or Cookie Too Large
500An unexpected error occurredsome errors have occurred in the gateway
502An invalid response was received from the upstream servergateway cannot access to upstream serverip:port is not reachable
503The upstream server is currently unavailablegateway cannot access to upstream serverip:port is not reachable
504The upstream server is timing outtimeout when gateway connect to upstream server
defaultThe upstream server responded with %dsome errors have occurred in the request, but statuscode is not in the check list
503name resolution failedgateway DNS resolution faileddns server error: 3 name error or dns client error: 101 empty record received
503failure to get a peer from the ring-balancerfail to fetch a health target from balancerNo peers are available or Balancer is unhealthy
  1. Footnotes

Upstream is the backend of gateway