HTTP error reference

408 Request Timeout

A 408 Request Timeout means the server opened a connection but did not receive the complete request in time, so it closed the connection. The delay is on the way in: a slow network, a large upload, or a client that went quiet.

If you are visiting the site

Try again on a steadier connection. If you were uploading a large file, try a smaller one or a wired network.

Common causes

A slow or unstable connection

Mobile networks and congested Wi-Fi can stall partway through sending a request.

Large uploads

Big files take longer to send than the server is willing to wait between chunks.

Short server read timeouts

Nginx waits 60 seconds between reads of the request body by default (client_body_timeout). Apache’s mod_reqtimeout sets its own limits on headers and body.

Idle connections

Browsers keep connections open for reuse. When a server closes an idle one, it may send a 408, and the browser usually just retries.

How to fix it

Nginx

  • If legitimate uploads are timing out, raise client_body_timeout for the upload location, and check client_max_body_size at the same time.

Apache

  • Adjust RequestReadTimeout in mod_reqtimeout. Keep a minimum transfer rate so slow attacks cannot hold connections open.

Applications

  • For very large files, upload in chunks or straight to object storage rather than through the web server.
  • Make retries safe: do not repeat a payment or order automatically after a timeout.

Quick checklist

  1. Check connection stability and request-body size.

  2. Compare upload and proxy time limits.

  3. Retry safely; do not automatically repeat non-idempotent purchases.

Questions about 408 errors

What is the difference between 408 and 504?

A 408 means the server waited too long for your request. A 504 means a proxy waited too long for the server’s response.

Should I just raise the timeout?

Only where uploads need it. Long timeouts everywhere make it easier for slow clients to tie up the server.

Use the guided checklist