user2023861
user2023861

Reputation: 8208

What does the nginx 502 559 error code mean?

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?

Upvotes: 7

Views: 6532

Answers (1)

Amade
Amade

Reputation: 3968

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

Upvotes: 3

Related Questions