# HTTP 408 Request Timeout

> HTTP 408 means the server did not get a complete request in time. See why, how it differs from 504, and the nginx, Apache and Node timeouts to adjust.

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

Guide Error · HTTP status codes

HTTP 408 means the server did not get a complete request in time. See why, how it differs from 504, and the nginx, Apache and Node timeouts to adjust.

4 min

read

7

sources

Oct 23, 2026

updated

Scaplet Editorial Team

author

408 4xx · Client error

The short answer

HTTP 408 Request Timeout means the server did not receive a complete request message within the time it was prepared to wait. The usual causes are on the request side: a slow connection, a stalled upload, or an idle connection the server closed. Retry on a stable connection; owners can check the server's header and body read timeouts.

1. [What a 408 means and who causes it](#what-a-408-means-and-who-causes-it)
2. [How to get past a 408 as a visitor](#how-to-get-past-a-408-as-a-visitor)
3. [How to fix it as a site owner or developer](#how-to-fix-it-as-a-site-owner-or-developer)
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%2F408%20(%22HTTP%20408%20Request%20Timeout%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%2F408%20(%22HTTP%20408%20Request%20Timeout%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%2F408%20(%22HTTP%20408%20Request%20Timeout%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%2F408%20(%22HTTP%20408%20Request%20Timeout%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_408 compared with 504

## What a 408 means and who causes it

RFC 9110 says the 408 status "indicates that the server did not receive a complete request message within the time that it was prepared to wait." If the client has an outstanding request in transit, it MAY repeat that request, using a new connection if the current one is not usable.

### Who waited

408 Request Timeout

The server, for the client's request

504 Gateway Timeout

A proxy, for an upstream server's response

### Who was too slow

408 Request Timeout

The client or the network to the server

504 Gateway Timeout

The upstream server

### Where to fix it

408 Request Timeout

Client connection, upload size, server read timeouts

504 Gateway Timeout

Origin speed, proxy timeouts, network path

MDN adds that some servers send a 408 on an idle connection, even with no previous request from the client, because they want to shut down an unused connection. It says this is more common because browsers such as Chrome and Firefox use HTTP pre-connection mechanisms. Cloudflare says a 408 is not commonly used, as servers often prefer to close idle connections without sending anything. So a stray 408 in your logs is not always a problem.

For the proxy-side case, see [504 Gateway Timeout](/errors/http/504).

_02_How it works

## How to get past a 408 as a visitor

1. 01

### Retry on a stable connection

The request did not arrive complete in time. Cloudflare lists slow network connections, server overload and client-side delays as common scenarios.
2. 02

### Shrink what you are sending

A large file upload takes longer to transmit. Try a smaller file or compress it.
3. 03

### Turn off the VPN or switch networks

Rule out your own path. Cloudflare suggests verifying that your internet connection is stable and that the request is sent promptly.
4. 04

### Check the result before submitting again

If a form was involved, the server may have received nothing. Confirm before resubmitting a payment or order.

_03_Request read timeouts by stack

## How to fix it as a site owner or developer

Find which phase timed out: receiving the request headers, or receiving the request body. Each stack has a separate setting, and each of these defaults is documented by its vendor.

Stack

### nginx

Setting

`client_header_timeout`

Documented default

60s

What happens on timeout

Request is terminated with a 408 (Request Time-out)

Stack

### nginx

Setting

`client_body_timeout`

Documented default

60s, between two successive reads

What happens on timeout

Request is terminated with a 408 (Request Time-out)

Stack

### Apache

Setting

`RequestReadTimeout` (mod_reqtimeout)

Documented default

`handshake=0 header=20-40,MinRate=500 body=20,MinRate=500`

What happens on timeout

A 408 REQUEST TIME OUT error is sent

Stack

### Node.js

Setting

`server.requestTimeout`

Documented default

300000 ms (5 minutes)

What happens on timeout

Responds with 408 and closes the connection

Stack

### Node.js

Setting

`server.headersTimeout`

Documented default

The minimum of `requestTimeout` or 60000 ms

What happens on timeout

Responds with 408 and closes the connection

Stack

### Cloudflare

Setting

Edge request timeouts

Documented default

Internal; Cloudflare says they cannot be changed

What happens on timeout

May return 408 if public client requests exceed them

Allow a slower upload on one route

```
location /upload/ { client_body_timeout 120s; # default 60s; applies between two reads client_max_body_size 50m; # default is 1m proxy_pass http://127.0.0.1:8000; }
```

Node.js: set the request read limits explicitly

```
import http from "node:http"; const server = http.createServer(handler); server.requestTimeout = 120_000; // whole request, default 300000 server.headersTimeout = 30_000; // headers only, default min(requestTimeout, 60000) server.listen(3000);
```

**Do not set the timeouts to zero**Node warns that `requestTimeout` and `headersTimeout` must be non-zero, for example 120 seconds, to protect against denial-of-service attacks when the server is deployed without a reverse proxy in front.

If the 408 comes from Cloudflare and not your origin, Cloudflare says to review the origin's timeout settings and check that the server is not overloaded, because a 408 on a Cloudflare site is most often proxied from the origin.

_04_Explained

## What it does to SEO

Google says all 4xx errors except 429 are treated the same: content from those URLs is ignored, an indexed URL is removed from the index, and crawling frequency gradually decreases. A 408 caused by one slow client is not a page problem. A 408 that comes back to a crawler for the same URL repeatedly may point to a read timeout that is too strict or to a connection problem. See [4xx errors](/seo-issues/4xx-errors) and Google's documentation on how [HTTP status codes](/glossary/http-status-codes) affect its crawlers.

Sources · 7

## Every fact, linked and dated.

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

- rfc-editor.org
- mozilla.org
- cloudflare.com
- nginx.org
- apache.org
- nodejs.org
- google.com

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 408 Request Timeout](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/408) developer.mozilla.org · checked 2026-10-25
3. 03 [Cloudflare: Error 408](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-408/) developers.cloudflare.com · checked 2026-10-25
4. 04 [nginx: ngx_http_core_module](https://nginx.org/en/docs/http/ngx_http_core_module.html) nginx.org · checked 2026-10-25
5. 05 [Apache HTTP Server: mod_reqtimeout](https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html) httpd.apache.org · checked 2026-10-25
6. 06 [Node.js: HTTP module documentation](https://nodejs.org/api/http.html) nodejs.org · checked 2026-10-25
7. 07 [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

Questions

## Asked a lot.

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

_01_ What does 408 mean?

The server did not receive a complete request within the time it was prepared to wait. The client may repeat the request, on a new connection if the old one is no longer usable.

_02_ How do I fix code 408?

As a visitor, retry on a stable connection or send less data. As an owner, check which timeout fired (headers or body) and raise the matching setting only if legitimate clients are slow: `client_header_timeout` or `client_body_timeout` in nginx, `RequestReadTimeout` in Apache, `requestTimeout` in Node.js.

_03_ What is the difference between 408 and 504?

A 408 means the server did not get the client's full request in time. A 504 means a gateway or proxy did not get a response from an upstream server in time.

_04_ Why do I see 408 in my logs with no user complaints?

MDN says some servers send 408 on idle connections without any previous request, and browsers open pre-connections to speed up loading. Those 408s are often harmless.

## Keep learning

[All errors](/errors)

[Learn 504 Gateway Timeout HTTP status codes](/errors/http/504) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next HTTP 431 Request Header Fields Too Large HTTP status codes](/errors/http/431) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411)

More in HTTP status codes
[HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302) [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)

Terms on this page
[HTTP status codes](/glossary/http-status-codes)

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
