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

What does the nginx 502 559 error code mean?

我的 nginx 错误日志中出现“502 559”错误。我知道 502 表示 "bad gateway"。 559 是什么意思?

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

the number of bytes in the HTML response that Nginx sent to the browser

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

或者,如 docs 中指定:

$body_bytes_sent
number of bytes sent to a client, not counting the response header; this variable is compatible with the “%B” parameter of the mod_log_config Apache module