407 Proxy Authentication Required
HTTP 407 Proxy Authentication Required 客戶端錯誤響應狀態碼錶示請求未成功,因為它缺少客戶端和具有請求資源訪問許可權的伺服器之間的代理伺服器的有效身份驗證憑據。
此響應隨Proxy-Authenticate標頭一起傳送,其中包含有關如何正確驗證請求的資訊。客戶端可以使用新的或替換的Proxy-Authorization標頭欄位重複該請求。
狀態
http
407 Proxy Authentication Required
示例
代理身份驗證
向 example.com/admin 發出 GET 請求
http
GET /admin HTTP/1.1
Host: example.com
在此過程中,一箇中間件告知客戶端必須進行身份驗證,並提供有關身份驗證方案的資訊
http
HTTP/1.1 407 Proxy Authentication Required
Date: Wed, 21 Oct 2015 07:28:00 GMT
Proxy-Authenticate: Basic realm="Access to internal site"
規範
| 規範 |
|---|
| HTTP 語義 # status.407 |