4xx Client ErrorRFC 9110

408Request Timeout

Server timed out waiting for the client to send the request.

What it means

The server timed out waiting for the request. The client did not send a complete request within the time the server was prepared to wait. The client may repeat the request without modification.

When to use it

  • Client took too long to send a complete request
  • Slow network connections
  • Server has a strict timeout policy

Code Examples

Express — request timeout
javascript
import timeout from 'connect-timeout';

app.use(timeout('5s'));
app.use((req, res, next) => {
  if (!req.timedout) next();
});

Quick Facts

Code408
CategoryClient Error
SpecRFC 9110
CommonNo
← Back to all status codes