502 通常指 HTTP 状态码 502(Bad Gateway,网关错误):表示服务器作为网关或代理时,从上游服务器收到了无效响应,因此无法完成请求。(在不同语境中也可能只是数字“502”。)
/faɪv oʊ tuː/
I got a 502 error when I opened the website.
我打开网站时出现了 502 错误。
When the load balancer can’t get a valid response from the upstream service, users may see a 502 Bad Gateway even though the application itself is running.
当负载均衡器无法从上游服务获得有效响应时,即使应用本身在运行,用户也可能看到 502 Bad Gateway。
“502” 来自 HTTP(超文本传输协议) 的状态码体系。状态码用三位数字表示请求结果,其中 5xx 表示“服务器端错误”,502 专指网关/代理从上游收到无效响应的情况。