7

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?

user2023861
  • 8,030
  • 9
  • 57
  • 86
  • 2
    In 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 Answers1

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 the mod_log_config Apache module

Amade
  • 3,665
  • 2
  • 26
  • 54