?
This document uses PHP Chinese website manual Release
HTTP 401 Unauthorized
客戶端錯(cuò)誤狀態(tài)響應(yīng)代碼指示該請(qǐng)求尚未應(yīng)用,因?yàn)樗鄙倌繕?biāo)資源的有效認(rèn)證憑證。
此狀態(tài)與包含有關(guān)如何正確授權(quán)信息的WWW-Authenticate
標(biāo)頭一起發(fā)送。
這種狀態(tài)與此類似403
,但在這種情況下,身份驗(yàn)證是可能的。
401 Unauthorized
HTTP/1.1 401 Unauthorized Date: Wed, 21 Oct 2015 07:28:00 GMT WWW-Authenticate: Basic realm="Access to staging site"
規(guī)范 | 標(biāo)題 |
---|---|
RFC 7235,第3.1節(jié):401未經(jīng)授權(quán) | HTTP / 1.1:認(rèn)證 |
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 認(rèn)證
WWW-Authenticate
Authorization
Proxy-Authorization
Proxy-Authenticate
403
, 407