©
This document usesPHP Chinese website manualRelease
HTTP401 Unauthorized
客户端错误状态响应代码指示该请求尚未应用,因为它缺少目标资源的有效认证凭证。
此状态与包含有关如何正确授权信息的WWW-Authenticate
标头一起发送。
这种状态与此类似403
,但在这种情况下,身份验证是可能的。
401 Unauthorized
HTTP/1.1 401 Unauthorized Date: Wed, 21 Oct 2015 07:28:00 GMT WWW-Authenticate: Basic realm="Access to staging site"
规范 |
标题 |
---|---|
RFC 7235,第3.1节:401未经授权 |
HTTP / 1.1:认证 |
Feature |
Chrome |
Firefox |
Edge |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|---|
Basic Support |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
Feature |
Android |
Chrome for Android |
Edge mobile |
Firefox for Android |
IE mobile |
Opera Android |
iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
(Yes) |
HTTP 认证
WWW-Authenticate
Authorization
Proxy-Authorization
Proxy-Authenticate
403
,407