Nginx 499 Client Closed Request

Plain-English meaning

Nginx logged that the client closed the connection first.

Why it happens

Common with browser timeout, network drops, or users abandoning slow pages.

Common causes

  • Very slow upstream responses
  • Aggressive client timeout settings
  • Frontend cancels in-flight requests
  • Mobile network instability

What to check first

Compare request_time with upstream_response_time and inspect client timeout values in edge/app tiers.

How to fix it

Reduce backend latency, stream early bytes for long requests, and align timeout settings across components.

Example signal

499 in access log request_time=35.2 upstream_response_time=35.1

Related links

404 · 429 · 500 · 502 · 503 · 504 · Cloudflare 522 · Nginx 499 · ERR_CONNECTION_REFUSED

Client errors hub · Server errors hub · Comparison pages · Homepage