502 HTTP状态码 [英] 502 HTTP Status Code

查看:3525
本文介绍了502 HTTP状态码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据RFC:


10.5.3 502 Bad Gateway

服务器在充当网关或代理时,在尝试完成请求时从其访问的上游服务器收到无效响应。

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)?

推荐答案

是。如果通过网关或代理访问,通常由连接断开或服务器端崩溃导致的空或不完整的标头或响应正文可能导致502错误。

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

这篇关于502 HTTP状态码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆