From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/http/status/408/index.html | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 files/zh-cn/web/http/status/408/index.html (limited to 'files/zh-cn/web/http/status/408') diff --git a/files/zh-cn/web/http/status/408/index.html b/files/zh-cn/web/http/status/408/index.html new file mode 100644 index 0000000000..a3ee29c59c --- /dev/null +++ b/files/zh-cn/web/http/status/408/index.html @@ -0,0 +1,41 @@ +--- +title: 408 Request Timeout +slug: Web/HTTP/Status/408 +tags: + - 响应状态码 + - 客户端错误 +translation_of: Web/HTTP/Status/408 +--- +
{{HTTPSidebar}}
+ +

响应状态码 408 Request Timeout 表示服务器想要将没有在使用的连接关闭。一些服务器会在空闲连接上发送此信息,即便是在客户端没有发送任何请求的情况下

+ +

服务器应该在此类响应中将 {{HTTPHeader("Connection")}} 首部的值设置为 "close",因为  408 意味着服务器已经决定将连接关闭,而不是继续等待。 

+ +

这类响应出现的比较频繁,源于一些浏览器——例如  Chrome, Firefox 27+, 或者 IE9 等——使用 HTTP 协议中的预连接机制来加速上网体验。同时应该注意到,某些服务器会直接关闭连接,而不发送此类消息。

+ +

状态

+ +
408 Request Timeout
+ +

规范

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7231", "408 Request Timeout" , "6.5.7")}}Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ +

相关内容

+ + -- cgit v1.2.3-54-g00ecf