aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/status/300/index.html
blob: 16a72ecf23911ce68865f9dd262ba38c19ceaf9d (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
---
title: 300 Multiple Choices
slug: Web/HTTP/Status/300
tags:
  - 状态码
translation_of: Web/HTTP/Status/300
---
<div>{{HTTPSidebar}}</div>

<p><code><strong>300 Multiple Choices</strong></code> 是一个用来表示重定向的响应状态码,表示该请求拥有多种可能的响应。用户代理或者用户自身应该从中选择一个。由于没有如何进行选择的标准方法,这个状态码极少使用。</p>

<p>假如服务器可以提供一个优先选择,那么它应该生成一个  {{HTTPHeader("Location")}} 首部。</p>

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

<pre class="syntaxbox">300 Multiple Choices</pre>

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

<p>参考这个页面: <a href="https://www.w3.org/Style/Examples/007/figures.ht">w3.org page for a Multiple Choice response</a>.</p>

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

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7231", "300 Multiple Choices" , "6.4.1")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

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

<ul>
 <li>{{HTTPStatus("301")}} <code>Moved Permanently</code></li>
 <li>{{HTTPStatus("302")}} <code>Found</code>, the temporary redirect</li>
 <li>{{HTTPStatus("308")}} <code>Permanent Redirect</code></li>
</ul>