HTTP 408 Request Timeout
HTTP 408 Request Timeout means the server closed the connection because the client took too long to send the complete request. It is about the client’s…
Quick answer
HTTP 408 Request Timeout means the server closed the connection because the client took too long to send the complete request. It is about the client’s upload being slow or stalled, not the server being slow; that would be 504 Gateway Timeout.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 408 Request Timeout mean?
Servers send 408 on idle keep-alive connections or slow uploads. Browsers often retry automatically. Frequent 408s usually point to network problems, very slow clients or a server timeout that is too short for large uploads.
| Status code | 408 |
|---|---|
| Name | Request Timeout |
| Class | 4xx Client Error |
| Defined in | RFC 9110 §15.5.9 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | Yes, with backoff |
What causes HTTP 408?
- Slow or interrupted client connection.
- Large uploads exceeding the server’s body timeout.
- Idle keep-alive connections being closed.
How do I fix HTTP 408?
- Increase the server’s client body timeout for upload endpoints (Nginx client_body_timeout).
- Use chunked or resumable uploads for big files.
What should a client do after HTTP 408?
Retry with backoff; the request is usually safe to repeat if it is idempotent.
Does HTTP 408 affect SEO?
Occasional 408s are harmless. Persistent ones mean Googlebot cannot fetch pages reliably, so check server load and timeouts.
Example 408 response
HTTP/1.1 408 Request Timeout
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":408,"message":"Request Timeout"}} How to return 408 Request Timeout in code
Express (Node.js)
res.status(408).json({ error: 'Request Timeout' }); Next.js route handler
return Response.json({ error: 'Request Timeout' }, { status: 408 }); FastAPI (Python)
raise HTTPException(status_code=408, detail="Request Timeout") PHP
http_response_code(408); Nginx
location = /example {
return 408;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
408 vs 504?
Is it safe to retry after 408?
Is 408 a client or server error?
Related
- 504 Gateway Timeout HTTP 504 Gateway Timeout means a gateway or proxy did not get a response from the upstream server in time.
- 499 Client Closed Request HTTP 499 Client Closed Request is a non-standard code logged by Nginx when the client closed the connection be.
- 413 Content Too Large HTTP 413 Content Too Large (formerly Payload Too Large or Request Entity Too Large) means the request body is .
- 503 Service Unavailable HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overl.
- Open the HTTP Status Codes Reference → Free, no signup.