502 HTTP Status Code

2019-01-14 05:20发布

According to the RFC:

10.5.3 502 Bad Gateway
The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

Can invalid response also mean no response at all (e.g. connection refused)?

1条回答
趁早两清
2楼-- · 2019-01-14 05:37

Yes. Empty or incomplete headers or response body typically caused by broken connections or server side crash can cause 502 errors if accessed via a gateway or proxy.

For more information about the network errors

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

查看更多
登录 后发表回答