blob: 0066926101bf72c43172bc06a32918f6a9e5c9db (
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
|
---
title: 415 Unsupported Media Type
slug: Web/HTTP/Status/415
tags:
- 响应状态码
- 响应码
- 客户端错误
- 状态码
translation_of: Web/HTTP/Status/415
---
<div>{{HTTPSidebar}}</div>
<p><code><strong>415 Unsupported Media Type</strong></code> 是一种HTTP协议的错误状态代码,表示服务器由于不支持其有效载荷的格式,从而拒绝接受客户端的请求。</p>
<p>格式问题的出现有可能源于客户端在 {{HTTPHeader("Content-Type")}} 或 {{HTTPHeader("Content-Encoding")}} 首部中指定的格式,也可能源于直接对负载数据进行检测的结果。</p>
<h2 id="状态">状态</h2>
<pre class="syntaxbox">415 Unsupported Media Type</pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Title</th>
</tr>
<tr>
<td>{{RFC("7231", "415 Unsupported Media Type" , "6.5.13")}}</td>
<td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
</tr>
</tbody>
</table>
<h2 id="相关内容">相关内容</h2>
<ul>
<li>{{HTTPHeader("Content-Type")}}</li>
<li>{{HTTPHeader("Content-Encoding")}}</li>
<li>{{HTTPHeader("Accept")}}</li>
</ul>
|