I'm getting a "502 559" error in my nginx error logs. I know that the 502 means "bad gateway". What does the 559 mean?
Asked
Active
Viewed 4,415 times
7
-
2In the default [`access_log` format](http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format) the `$body_bytes_sent` follows the `$status`. So that's the number of bytes in the HTML response that Nginx sent to the browser. – Richard Smith Apr 17 '20 at 19:04
1 Answers
3
As mentioned by Richard Smith in the comment, 559
in the nginx log stands for:
the number of bytes in the HTML response that Nginx sent to the browser
Source: http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format
or, as specified in the 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 themod_log_config
Apache module

Amade
- 3,665
- 2
- 26
- 54