HTTP 499 Client Closed Request

A laptop has disconnected while the server at the other end stays active

nginx and Cloudflare can log 499 when the downstream client closes the connection before the server completes the exchange. It is a log value in this use. The client that has disconnected receives no 499 response from that event.

Work out who the server sees as its client

A user can navigate away, an application deadline can expire, or an intermediary can cancel its request to the origin. The immediate client in the log may be a reverse proxy rather than the browser. Use the request ID and timings to line up the events.

Investigate repeated cancellations

Compare the client deadline with origin response times for the same route. If 499 rates rise, look for slow handlers, larger responses or a new timeout setting. A gateway that remains connected long enough to return an upstream timeout can instead send 504.

A five-second client deadline against a slow origin

Suppose a service calls a report endpoint with a five-second deadline. The backend needs eight seconds before it can return the first byte. The caller closes the connection at five seconds and the server or proxy may log 499. Compare the elapsed time on many failures with the configured deadline and with successful calls to the same route. A cluster near the same elapsed time can identify which timeout fires first.

Check whether the original operation finished

For expensive writes or report requests, confirm the operation's state before repeating it. A disconnected client and a canceled backend job are different outcomes. Trace a request ID from the client through the reverse proxy to the service and look for a matching completion or cancellation. If the client itself timed out, inspect its error and budget before changing proxy settings. If you received an actual 499 response from a different product, check that product's definition for the error code.

Cloudflare documentation for error 499.

All HTTP status codes · All proxy testing guides · Open the proxy tester