Quick answer: A 499 status code means the client closed the connection before the server sent its response. It is not an official HTTP status code. NGINX created it to log client-aborted requests, and NGINX-based platforms such as Cloudflare and Azure Application Gateway v2 use it too. The usual causes are slow backend responses, client timeouts that are shorter than the server's processing time, and users leaving the page. A few 499s are normal; a steady rise points to a performance or timeout problem.
The client never sees a 499. It is written to the server or proxy log after the client has already gone, which is why it confuses so many teams. This guide explains where 499s come from, how to read them in NGINX, Azure, Cloudflare and AWS logs, and how to fix them.
What is a 499 status code?
A 499, labeled "Client Closed Request" in NGINX, records that the server received a request and started processing it, but the client disconnected before the response was ready. You will see it in:
![]()
-
NGINX access logs, in the status field
-
Kubernetes logs from the ingress-nginx controller
-
Azure Application Gateway v2 access logs
-
Cloudflare Logs and status code analytics (Enterprise plans)
-
API gateways and reverse proxies built on NGINX
A 499 is different from a server failure such as a 500 status code, where the application itself breaks. With a 499, the server may have been working correctly but too slowly for the client.
Is 499 an official HTTP status code?
No. The HTTP specification (RFC 9110) and the IANA status code registry do not define 499. NGINX added it because standard HTTP has no code for "the client gave up before we finished." Other platforms record the same event differently: AWS Application Load Balancer logs it as HTTP 460, and Azure Application Gateway v1 can log it as HTTP 0.
What causes a 499 error?
The user leaves the page
A user clicks away, closes the tab or presses back before the response arrives. A small number of these on any website is normal.
The backend takes too long
If an endpoint takes 30 seconds and the browser, app or API client stops waiting at 15, the request ends as a 499. This is the most common cause on dashboards, reports, search and unoptimized APIs.
The client timeout is shorter than the server timeout
Many 499s come from API clients, mobile apps, health checks and scripts with short timeouts. When a client such as axios or fetch gives up, the client shows its own timeout error, while NGINX logs 499. Messages like "Request failed with status code 499" or "Failed to load resource: the server responded with a status of 499" come from a proxy or gateway that passed the 499 back to a client further down the chain.
A proxy or load balancer in the middle closes the connection
When a CDN, load balancer or gateway sits in front of NGINX and has a shorter timeout, it closes its connection to NGINX and NGINX records a 499. This is common in stacks with several proxy layers.
Network interruptions
Weak mobile signals, Wi-Fi drops and VPN reconnects end requests early. These are hard to prevent but should stay a small share of traffic.
Bots and crawlers
Scrapers and some crawlers abort slow requests. A spike of 499s from a narrow IP range or one user agent usually points to bot traffic.
499 vs. 408, 460, 502 and 504
|
Code |
Meaning |
Who gave up |
Typical example |
|---|---|---|---|
|
499 |
Client Closed Request (non-standard, NGINX) |
The client |
User closes the tab while a slow report loads |
|
460 |
Client closed the connection (AWS Application Load Balancer) |
The client |
Client timeout is shorter than the load balancer idle timeout |
|
408 |
Request Timeout |
The server, waiting for the client |
Client sends the request body too slowly |
|
502 |
Bad Gateway |
Neither; the upstream sent an invalid response |
NGINX cannot get a valid response from the app server |
|
504 |
Gateway Timeout |
The proxy, waiting for the upstream |
App server takes longer than the proxy timeout |
A 499 and a 504 often share the same cause, a slow backend. Which one you see depends on who stops waiting first: the client (499) or the proxy (504). For related errors, see our guides to the 502 Bad Gateway error and the 503 status code.
499 status code in Azure
Azure Application Gateway v2 records 499 itself. Microsoft's documentation says a 499 appears when the client closes the connection before the server finishes responding, for example when a large response is still downloading or when the client timeout is too low. In that case Microsoft recommends increasing the client timeout. On Application Gateway v1, the same event can appear as HTTP 0.
Timeouts across Azure services are the next thing to check:
|
Service |
Default timeout |
What happens when the backend is slower |
|---|---|---|
|
Application Gateway (backend settings request timeout) |
20 seconds; up to 86,400 seconds for private backends and 240 seconds for external backends |
v2 returns 504; v1 returns 502 |
|
Azure Front Door Standard/Premium (origin response timeout) |
30 seconds; configurable from 16 to 240 seconds |
Returns 504 with "OriginTimeout" |
|
AKS with the ingress-nginx controller |
60 seconds (NGINX proxy_read_timeout default) |
NGINX returns 504, or logs 499 if the client leaves first |
If you see 499s in Azure, review Application Gateway access logs, Front Door logs, ingress-nginx pod logs in AKS, and backend duration in Application Insights. Make sure each layer's timeout is longer than the layer behind it, and check health probes: a slow or cold-starting app can turn probes and Always On pings into 499s. Teams running production workloads often get this alignment done as part of Azure managed services.
499 status code in Cloudflare and NGINX
Cloudflare is built on NGINX, so it uses the same code. Cloudflare's documentation says 499 appears in Cloudflare Logs and status code analytics for Enterprise customers, that occasional 499s are expected, and that high P95 origin response times in Origin Analytics are the place to start.
In NGINX, the proxy timeouts all default to 60 seconds:
-
proxy_connect_timeout: time to open a connection to the upstream server.
-
proxy_send_timeout: time between two write operations to the upstream server.
-
proxy_read_timeout: time between two read operations from the upstream server.
-
proxy_ignore_client_abort (default off): when on, NGINX keeps the upstream request running after the client disconnects. Use it only for requests that must finish, such as payments or writes; it does not stop the 499 from being logged.
How to diagnose HTTP 499 errors?
-
Filter NGINX or gateway access logs for status 499 and group them by URL, user agent and time.
-
Add $request_time and $upstream_response_time to your NGINX log format. Long times point to a slow backend; short times point to clients or bots disconnecting early.
-
Check whether 499s are site-wide or limited to a few endpoints.
-
Compare 499 spikes with traffic peaks, deployments and database load.
-
Check backend response times in your APM tool, such as Application Insights, Datadog or New Relic.
-
List every timeout in the request path: client, CDN, firewall, load balancer, ingress, application.
-
Look for patterns by device, region, network or IP range to separate real users from bots.
Example NGINX log line:
192.0.2.45 - - [14/May/2026:09:21:33 -0500] "GET /api/reports/quarterly HTTP/1.1" 499 0 "https://example.com/dashboard" "Mozilla/5.0" 28.412
The client requested /api/reports/quarterly, NGINX waited 28.4 seconds, sent 0 bytes and logged 499 because the client disconnected first. A request time this long means the endpoint is too slow for the client's timeout.
How to fix the 499 status code?
Make slow endpoints faster
Profile the slowest endpoints first. Add database indexes, remove N+1 queries, paginate large results and cache expensive calculations. This fixes the cause rather than the symptom.
Move long jobs to background processing
For exports, PDF generation and bulk updates, return a job ID right away and let the client poll for the result or receive a webhook.
Align timeouts from the client inward
Each layer should wait a little longer than the layer behind it. Raise timeouts only for endpoints that need the time, after confirming the backend is not stuck.
Fix client and API timeouts
If a mobile app, script or health check stops waiting too early, raise its timeout or point it to a lightweight endpoint, such as a dedicated health check that returns immediately.
Reduce payload size and front-end delay
Compress responses with gzip or Brotli, remove unused fields from API responses and cut unnecessary redirects so users wait less.
Separate bot traffic
Rate-limit or block abusive bots, and exclude them from your 499 alerts so real problems stay visible.
Does a 499 status code affect SEO?
A few 499s from users on weak connections will not affect rankings. Frequent 499s on important pages are worth fixing:
-
Crawling: if Googlebot's requests time out on very slow pages, those pages are crawled less often. Check the Crawl Stats report in Search Console for response time trends.
-
Core Web Vitals: the slow server response behind 499s usually raises Largest Contentful Paint as well.
-
Conversions: users who leave slow checkout, login or quote pages are lost revenue whatever the ranking.
-
Log analysis: a flood of 499s hides other error patterns during SEO audits.
Reviewing server logs alongside Search Console is part of a technical SEO audit. For large sites, enterprise SEO teams usually own this monitoring together with developers.
How to prevent 499 errors?
-
Alert on 499 rate per endpoint, not only on site-wide averages.
-
Keep a written map of every timeout in the request path and review it after infrastructure changes.
-
Load-test high-value pages and APIs before launches.
-
Cache at the CDN, application and database layers.
-
Size hosting and cloud resources for peak traffic, and watch for cold starts.
-
Track bot traffic separately from real users.
When to ask a developer or cloud team for help?
Escalate when 499s repeat on checkout, login or dashboard pages, when they coincide with API failures, when Application Gateway, Front Door or AKS logs show recurring timeouts, or when the logs are too noisy to read. These usually need a structured look at application performance and cloud configuration together. Centric custom web application and Microsoft cloud teams handle both sides.
Frequently Asked Questions
What is a 499 status code?
A non-standard code that NGINX and NGINX-based platforms log when the client closes the connection before the server responds.
Is 499 a client-side or server-side error?
The client closed the connection, but the reason is often a slow server response. Check server response times before blaming clients.
What does 499 mean in Azure?
Azure Application Gateway v2 logs 499 when the client closes the connection before the response finishes, for example during a large download or because of a short client timeout. NGINX ingress controllers in AKS log it the same way.
What is the difference between 499 and 504?
With 499 the client stopped waiting; with 504 the proxy stopped waiting for the upstream server. Both often point to a slow backend.
Does Cloudflare return 499 errors?
Cloudflare logs 499 when a client closes the connection before the origin responds. It appears in Cloudflare Logs and status code analytics for Enterprise customers.
Should I worry about occasional 499 errors?
No. Investigate when they spike, concentrate on key URLs or line up with slow response times.
What is the AWS equivalent of 499?
AWS Application Load Balancer logs HTTP 460 when the client closes the connection before the load balancer responds.
Final thoughts
A 499 tells you the client stopped waiting. Occasional 499s are normal; a rising rate means a slow endpoint or a timeout mismatch somewhere between the client and your application. Measure request times, align timeouts layer by layer and fix the slowest endpoints first.
