# HTTP 499 Client Closed Request

> 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.

Canonical: https://scaplet.com/errors/http/499

Guide Error · HTTP status codes

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.

4 min

read

6

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

499 4xx · Client error

The short answer

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.

1. [What a 499 means and who defines it](#what-a-499-means-and-who-defines-it)
2. [When a 499 is worth investigating](#when-a-499-is-worth-investigating)
3. [nginx: what to log and which setting matters](#nginx-what-to-log-and-which-setting-matters)
4. [What it does to SEO](#what-it-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F499%20(%22HTTP%20499%20Client%20Closed%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F499%20(%22HTTP%20499%20Client%20Closed%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F499%20(%22HTTP%20499%20Client%20Closed%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F499%20(%22HTTP%20499%20Client%20Closed%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_499 compared with 408 and 504

## What a 499 means and who defines it

499 is not an HTTP standard [status code](/glossary/http-status-codes). It is not defined in RFC 9110. nginx defines it in its source as `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.

Code

### 499

Standard?

No. nginx and Cloudflare logging value

Who gave up

The client closed the connection

Seen by the client?

No, logs only

Code

### 408

Standard?

Yes, RFC 9110

Who gave up

The server stopped waiting for the client's request

Seen by the client?

Yes, as a response from the server

Code

### 504

Standard?

Yes, RFC 9110

Who gave up

A proxy stopped waiting for an upstream server

Seen by the client?

Yes

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.

_02_Common patterns and what to check

## When a 499 is worth investigating

A few 499s are normal. Investigate when the rate rises noticeably above your baseline, stays high at one Cloudflare data center, or hits a latency-sensitive endpoint. Cloudflare is explicit that a 499 alone does not identify a cause or locate a fault.

Pattern

### Client deadline shorter than latency

What to check

Origin response time on the affected endpoint against the client's timeout

Fix

Speed up the endpoint, or lengthen the client timeout if that is under your control

Pattern

### Cache hit rate dropped

What to check

Cache hit rate for the paths with a 499 spike

Fix

Check the cache configuration for those paths, as Cloudflare advises

Pattern

### One data center or network

What to check

499 rate by data center, compared with matched traffic elsewhere

Fix

Collect sample request IDs and contact the provider if unexplained

Pattern

### Long or streaming responses

What to check

[Time to first byte](/glossary/time-to-first-byte) and response body bytes on the 499 entries, compared with matched completed requests on the same paths

Fix

Confirm the timeout the client or SDK really uses, and whether it is configurable

Pattern

### Connection setup is slow

What to check

Time to connect to the origin

Fix

This is one phase where a 499 can occur. Cloudflare publishes a 19-second TCP connection establishment limit for the origin-connect phase, and a client that leaves during it produces a 499 entry

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.

_03_Check it

## nginx: what to log and which setting matters

In nginx, a 499 appears in the access log's status field when a client closes the connection before nginx finishes. To see the matching event in the error log, set its level to `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.

**Turning proxy_ignore_client_abort on is a trade-off**With `on`, nginx keeps the upstream connection open after the client leaves, so the upstream finishes work nobody will read. That can be right for a request that must complete, such as a write, but it can add load when many clients abandon requests. Decide per route.

If clients leave because responses take a long time, the fix is a faster response, and the page to read is [504 Gateway Timeout](/errors/http/504) for the proxy-side timeouts that look similar.

Log request time next to the status to spot slow requests that end in 499

```
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; }
```

_04_Explained

## What it does to SEO

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](/seo-issues/slow-ttfb). If the failures you see are responses with 5xx status, they are covered in [5xx server errors](/seo-issues/server-errors-5xx), and Google's documentation on how HTTP status codes affect its crawlers lists the codes it does act on.

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What does HTTP 499 mean?

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.

_02_ How do I fix HTTP 499 in nginx?

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.

_03_ Is a 499 a server error?

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.

_04_ What is the difference between 499 and 504?

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.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- github.com
- cloudflare.com
- nginx.org
- rfc-editor.org
- google.com

1. 01 [nginx source: ngx_http_request.h](https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request.h) github.com · checked 2026-10-25
2. 02 [nginx source: ngx_http_request.c](https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request.c) github.com · checked 2026-10-25
3. 03 [Cloudflare: Error 499](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-499/) developers.cloudflare.com · checked 2026-10-25
4. 04 [nginx: ngx_http_proxy_module](https://nginx.org/en/docs/http/ngx_http_proxy_module.html) nginx.org · checked 2026-10-25
5. 05 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
6. 06 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 504 Gateway Timeout HTTP status codes](/errors/http/504) [Related Slow Time to First Byte Performance](/seo-issues/slow-ttfb) [Read next HTTP 408 Request Timeout HTTP status codes](/errors/http/408) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[451 Unavailable For Legal Reasons](/errors/http/451)

More in HTTP status codes
[HTTP 303 See Other](/errors/http/303) [HTTP 304 Not Modified](/errors/http/304) [HTTP 307 Temporary Redirect](/errors/http/307) [HTTP 308 Permanent Redirect](/errors/http/308) [HTTP 400 Bad Request](/errors/http/400) [HTTP 401 Unauthorized](/errors/http/401) [HTTP 405 Method Not Allowed](/errors/http/405) [HTTP 407 Proxy Authentication Required](/errors/http/407) [HTTP 408 Request Timeout](/errors/http/408) [HTTP 409 Conflict](/errors/http/409) [HTTP 412 Precondition Failed](/errors/http/412) [HTTP 431 Request Header Fields Too Large](/errors/http/431) [HTTP 499 Client Closed Request](/errors/http/499) [HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [Time to First Byte (TTFB)](/glossary/time-to-first-byte)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
