HTTP 499 Client Closed Request
A code nginx writes to its logs when the client closed the connection before the server had answered. Visitors never see it.
Check a URL for HTTP 499
Paste any URL to see whether it currently returns 499. Runs a live HTTP probe and follows redirects.
TL;DR
499 means the client stopped waiting. One or two are normal: people close tabs. A lot of them means responses are slower than the client's patience, or slower than a timeout in a proxy or load balancer in front of nginx.
What does HTTP 499 mean?
499 is not part of the HTTP standard. nginx uses it in its access log to record that the client gave up and closed the connection while nginx was still waiting to send a response, usually because the application behind it was slow. Because the connection is already closed, the code is never sent to anyone. It exists only in logs and in the dashboards built from them. Some load balancers and CDNs log the same event under the same number.
Common Causes
- •The application is slow, and people or programs give up before it answers
- •A load balancer, CDN or API gateway in front of nginx with a shorter timeout than the application needs
- •API clients with short timeouts that then retry, adding more load
- •Visitors navigating away or closing the tab while the page loads
- •Health checks or monitoring probes with very short timeouts
How to Fix It
- 1.Find the slow addresses: compare 499 entries with request times in the nginx log
- 2.Speed up the application for those requests: slow database queries and calls to outside services are the usual causes
- 3.Line up the timeouts so each layer waits at least as long as the one behind it: client, load balancer, nginx, application
- 4.Move long-running work to a background job and return 202 Accepted straight away
- 5.Make sure clients that retry use backoff, so a slow period is not made worse
SEO Impact
499 is never sent to a crawler, so it has no direct effect. The slowness behind it does: if Googlebot gives up on slow responses, it crawls less, and slow pages rank worse.
Frequently Asked Questions about HTTP 499
Is 499 a client error or a server error?
It is recorded as a client action, because the client closed the connection. The cause is usually on the server side: the response took longer than the client was prepared to wait.
What is the difference between 499 and 504?
With 504, the proxy gave up waiting for the application and told the client so. With 499, the client gave up first, so there was nobody left to tell.
Related Status Codes
Free Website Tools
Check your site for common issues that cause HTTP errors: