HTTP 408 Request Timeout
The server timed out waiting for the client to send the request.
4xx Client Error
408
Request Timeout
Description
The 408 Request Timeout status code indicates that the server did not receive a complete request message within the time that it was prepared to wait. A server should send the close connection option in the response, since 408 implies that the server has decided to close the connection rather than continue waiting. The client may repeat the request without modifications at any time. This is different from 504 Gateway Timeout, which indicates that an upstream server timed out. The 408 specifically means the server was waiting for the client to finish sending the request.
When Is It Used?
Returned when the server closes a connection because the client took too long to send the complete request. This can happen with slow network connections, very large file uploads on slow connections, or when a client opens a connection but does not send data.
Example Response
HTTP/1.1 408 Request Timeout
Connection: close
Content-Type: application/json
{"error": "request_timeout", "message": "The server timed out waiting for the request"}