Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. HTTP response status codes
  5. 408 Request Timeout

408 Request Timeout

The HTTP408 Request Timeoutclient error response status code indicates that the server would like to shut down this unused connection.A408 is sent on an idle connection by some servers,even without any previous request by the client.

A server should send theConnection: close header field in the response, since408 implies that the server has decided to close the connection rather than continue waiting.

This response is used much more since some browsers, like Chrome and Firefox, use HTTP pre-connection mechanisms to speed up surfing.

Note:Some servers will shut down a connection without sending this message.

Status

http
408 Request Timeout

Examples

Timeout in form submission

The following example shows what a client may send when an<input type="file"> element uses an image on form submission withmethod="post":

http
POST /upload HTTP/1.1Host: example.comContent-Type: multipart/form-data; boundary=----Boundary1234Content-Length: 4012345------Boundary1234Content-Disposition: form-data; name="file"; filename="myImage.jpg"Content-Type: image/jpeg\xFF\xD8\xFF\xE0\x00...(binary data)------Boundary1234--

If the data is not received in full due to network issues or latency, the server may timeout the connection.Clients may repeat the request again, and a new connection will be used:

http
HTTP/1.1 408 Request TimeoutContent-Type: text/html<html><head>    <title>408 Request Timeout</title></head><body>    <h1>408 Request Timeout</h1>    <p>Failed to process request in time. Please try again.</p></body></html>

Specifications

Specification
HTTP Semantics
# status.408

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp