blob: 75af3a69f32f1f386a8970b9f3fd0df397f51492 (
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
|
---
title: 429 Too Many Requests
slug: Web/HTTP/Status/429
tags:
- HTTP协议
- 客户端错误
- 状态码
translation_of: Web/HTTP/Status/429
---
<div>{{HTTPSidebar}}</div>
<p>在HTTP协议中,响应状态码 <code><strong>429 Too Many Requests</strong></code> 表示在一定的时间内用户发送了太多的请求,即超出了“频次限制”。</p>
<p>在响应中,可以提供一个 {{HTTPHeader("Retry-After")}} 首部来提示用户需要等待多长时间之后再发送新的请求。</p>
<h2 id="状态">状态</h2>
<pre class="syntaxbox">429 Too Many Requests</pre>
<h2 id="示例">示例</h2>
<pre>HTTP/1.1 429 Too Many Requests
Content-Type: text/html
Retry-After: 3600</pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Title</th>
</tr>
<tr>
<td>{{RFC("6585", "429 Too Many Requests" , "4")}}</td>
<td>Additional HTTP Status Codes</td>
</tr>
</tbody>
</table>
<h2 id="相关内容">相关内容</h2>
<ul>
<li>{{HTTPHeader("Retry-After")}}</li>
</ul>
|