499
- Standard?
- No. nginx and Cloudflare logging value
- Who gave up
- The client closed the connection
- Seen by the client?
- No, logs only
HTTP 499 is a non-standard code in nginx and Cloudflare logs for a client that hung up before the reply. See the causes, what to check and the nginx settings.
HTTP 499 is a non-standard status that nginx and Cloudflare record in their logs when the client closes the connection before the server finishes responding. No 499 response reaches the client; it appears only in logs. A common pattern is a client deadline shorter than your latency, so measure slow endpoints before changing any setting.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
NGX_HTTP_CLIENT_CLOSED_REQUEST with the value 499, and finalizes a request with it after logging "client prematurely closed connection" at the info level. Cloudflare uses the same number: it records a 499 "when a client closes the connection before the request is complete", and sends no 499 response to the client.Because the client has already gone, you never see a 499 in a browser. You see it in access logs, analytics and monitoring. Cloudflare says clients disconnect for ordinary reasons such as page navigation, app cancellation or a request deadline, and that a low 499 rate is expected and does not indicate a fault.
Calculate the rate, not the count: divide 499 requests by all eligible requests for the same endpoint, client population and protocol, and compare it with your normal baseline. Cloudflare recommends this because a log export of only the 499 entries has no denominator for a rate. If a client retries after giving up, use idempotency keys for requests that change data, as Cloudflare advises for transaction-sensitive requests.
info, because that is the level of the "client prematurely closed connection" message. The related directive is proxy_ignore_client_abort, which "determines whether the connection with a proxied server should be closed when a client closes the connection without waiting for a response". It defaults to off, so nginx closes the upstream connection when the client leaves.If clients leave because responses take a long time, the fix is a faster response, and the page to read is 504 Gateway Timeout for the proxy-side timeouts that look similar.
log_format timed '$remote_addr "$request" $status $request_time $upstream_response_time';
access_log /var/log/nginx/access.log timed;
location /api/ {
proxy_pass http://127.0.0.1:8000;
# default is off: close the upstream connection when the client leaves
proxy_ignore_client_abort off;
}A 499 is never returned, so it is not a status Google receives or documents. What matters is why the connection was closed. If real visitors abandon slow pages, that is a latency problem; see slow TTFB. If the failures you see are responses with 5xx status, they are covered in 5xx server errors, and Google's documentation on how HTTP status codes affect its crawlers lists the codes it does act on.
4 questions people ask next, answered from the sources on this page.
It means the client closed the connection before the server finished responding. It is a non-standard code recorded in nginx and Cloudflare logs, and no 499 response is sent to the client.
Find which endpoints show 499, log $request_time and $upstream_response_time beside the status, and fix the slow responses or the client timeout behind them. Changing proxy_ignore_client_abort only changes whether nginx keeps the upstream connection open after the client leaves.
Not in the HTTP standard sense. It is a logging value for a client that hung up, though the cause can be server latency. It is a 4xx-range number, but it is not defined by RFC 9110.
With a 499 the client gave up and closed the connection. With a 504 a gateway or proxy gave up waiting for an upstream server and returned a response to the client.
Run the free audit, then approve the fixes. Every change can be undone.