SiteError.comYour friendly guide to HTTP status codes
Status CodesBlog
  1. Home
  2. NGINX
  3. 499 Client Closed Request

499 Client Closed Request

๐Ÿ“ž
499
Client Closed Request

Example HTTP Response

HTTP Response
HTTP/1.1 499 Client Closed Request
Common Causes
  • User navigated away from page before response loaded
  • Client timeout exceeded server processing time
  • Network interruption or connection reset
  • User hit stop/refresh during slow request
  • Mobile app killed while request in flight
  • Impatient client closed connection
Technical Details

What does this mean?

Hello? Anyone there? You hung up before we could answer! Like calling customer service and rage-quitting before they pick up. We have your answer ready but you've already left!

Technical Definition

The client closed the connection before nginx could send a response. This code appears only in nginx logs and is never actually sent to the client.

Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(499).json({
    error: 'Client Closed Request',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(499, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'Client Closed Request',
    message: 'Your error message here'
  }));
}).listen(3000);
From the Blog
  • Understanding NGINX 499 Client Closed Request: When Your Users Give Up First

    A deep dive into NGINX's 499 status code โ€” what it means when the client hangs up before the server can respond, and how to use it as a leading indicator of problems.

    10 min read
Related Status Codes
โฐ408Request TimeoutโŒ›504Gateway Timeout

499 Client Closed Request FAQ

What causes a 499 Client Closed Request error?

User navigated away from page before response loaded. Client timeout exceeded server processing time. Network interruption or connection reset. User hit stop/refresh during slow request. Mobile app killed while request in flight. Impatient client closed connection.

498 Invalid Token520 Web Server Returns Unknown Error

Popular Status Codes

  • 200 OK
  • 301 Moved Permanently
  • 302 Found
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
  • 502 Bad Gateway
  • 503 Service Unavailable

Compare Codes

  • 401 vs 403
  • 301 vs 302
  • 404 vs 410
  • 500 vs 502
  • Compare any codes โ†’

Categories

  • Informational
  • Success
  • Redirection
  • Client Error
  • Server Error
  • NGINX
  • Cloudflare
  • AWS ELB
  • Microsoft IIS

Tools

  • Cheat Sheet
  • Status Code Quiz
  • URL Checker
  • API Playground
  • Blog

ยฉ 2026 SiteError.com. All rights reserved.