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 |