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/416/index.html | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 files/zh-cn/web/http/status/416/index.html (limited to 'files/zh-cn/web/http/status/416/index.html') diff --git a/files/zh-cn/web/http/status/416/index.html b/files/zh-cn/web/http/status/416/index.html new file mode 100644 index 0000000000..42235de925 --- /dev/null +++ b/files/zh-cn/web/http/status/416/index.html @@ -0,0 +1,45 @@ +--- +title: 416 Range Not Satisfiable +slug: Web/HTTP/Status/416 +translation_of: Web/HTTP/Status/416 +--- +
{{HTTPSidebar}}
+ +

 HTTP 416 Range Not Satisfiable 错误状态码意味着服务器无法处理所请求的数据区间。最常见的情况是所请求的数据区间不在文件范围之内,也就是说,{{HTTPHeader("Range")}} 首部的值,虽然从语法上来说是没问题的,但是从语义上来说却没有意义。

+ +

416 响应报文包含一个  {{HTTPHeader("Content-Range")}} 首部,提示无法满足的数据区间(用星号 * 表示),后面紧跟着一个“/”,再后面是当前资源的长度。例如:Content-Range: */12777

+ +

遇到这一错误状态码时,浏览器一般有两种策略:要么终止操作(例如,一项中断的下载操作被认为是不可恢复的),要么再次请求整个文件。

+ +

状态

+ +
416 Range Not Satisfiable
+ +

协议

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7233", "416 Request Not Satisfiable" , "4.4")}}Hypertext Transfer Protocol (HTTP/1.1): Range Requests
+ +

浏览器兼容性

+ + + +

{{Compat("http.status.416")}}

+ +

更多内容

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