aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/status/407/index.html
blob: b994f122965383e6d18e229e83b970159a698af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: 407 Proxy Authentication Required
slug: Web/HTTP/Status/407
tags:
  - 代理服务器
  - 响应状态码
  - 客户端错误
  - 状态码
  - 身份验证
  - 验证凭证
translation_of: Web/HTTP/Status/407
---
<div>{{HTTPSidebar}}</div>

<p>状态码 <strong><code>407 Proxy Authentication Required </code></strong> 代表客户端错误,指的是由于缺乏位于浏览器与可以访问所请求资源的服务器之间的代理服务器({{Glossary("proxy server")}} )要求的身份验证凭证,发送的请求尚未得到满足。</p>

<p>这个状态码会与 {{HTTPHeader("Proxy-Authenticate")}} 首部一起发送,其中包含有如何进行验证的信息。</p>

<h2 id="状态">状态</h2>

<pre class="syntaxbox">407 Proxy Authentication Required </pre>

<h2 id="响应示例">响应示例</h2>

<pre>HTTP/1.1 407 Proxy Authentication Required
Date: Wed, 21 Oct 2015 07:28:00 GMT
Proxy-Authenticate: Basic realm="Access to internal site"</pre>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7235", "407 Proxy Authentication Required" , "3.2")}}</td>
   <td>HTTP/1.1: Authentication</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>

<p>{{Compat("http.status.407")}}</p>

<h2 id="相关内容">相关内容</h2>

<ul>
 <li><a href="/en-US/docs/Web/HTTP/Authentication">HTTP authentication</a></li>
 <li>{{HTTPHeader("WWW-Authenticate")}}</li>
 <li>{{HTTPHeader("Authorization")}}</li>
 <li>{{HTTPHeader("Proxy-Authorization")}}</li>
 <li>{{HTTPHeader("Proxy-Authenticate")}}</li>
 <li>{{HTTPStatus("401")}}, {{HTTPStatus("403")}}</li>
</ul>