Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 408 Request Timeout
4xx Client Error

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 code408
NameRequest Timeout
Class4xx Client Error
Defined inRFC 9110 §15.5.9
Cacheable by defaultNo, 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?

  1. Increase the server’s client body timeout for upload endpoints (Nginx client_body_timeout).
  2. 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.

Frequently asked questions

408 vs 504?
408: the client was too slow to send the request. 504: a gateway waited too long for an upstream server’s response.
Is it safe to retry after 408?
Yes for idempotent requests (GET, PUT, DELETE). For POST, use an idempotency key to avoid duplicates.
Is 408 a client or server error?
408 is in the 4xx class, so it is classed as a client error: the request needs to change before it can succeed.