nginx 502 559 错误代码是什么意思?

use*_*861 7 nginx bad-gateway

我的 nginx 错误日志中收到“502 559”错误。我知道 502 的意思是“坏网关”。559是什么意思?

Ama*_*ade 3

正如 Richard Smith 在评论中提到的,559在 nginx 日志中代表:

\n
\n

Nginx 发送到浏览器的 HTML 响应中的字节数

\n
\n

来源:\n http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format

\n

或者,如文档中指定的:

\n
\n

$body_bytes_sent
\n发送到客户端的字节数,不包括响应头;该变量与Apache模块\xe2\x80\x9c%B\xe2\x80\x9d的参数兼容mod_log_config

\n
\n