存放日常开发所撰写的Markdown文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
4.4 KiB

3 years ago
# 常见开发
---
HTTP 请求状态码分为五个类别,分别为:
1xx:消息(Informational)
2xx:成功(Successful)
3xx:重定向(Redirection)
4xx:客户端错误(Client Error)
5xx:服务器错误(Server Error)
下面是一些常见的 HTTP 状态码:
#### 1xx:消息(Informational)
100 Continue - 请继续
101 Switching Protocols - 切换协议
#### 2xx:成功(Successful)
200 OK - 请求成功
201 Created - 创建成功
202 Accepted - 已接受请求,但未处理完成
203 Non-Authoritative Information - 非授权信息
204 No Content - 没有内容返回
205 Reset Content - 重置内容
206 Partial Content - 部分内容
#### 3xx:重定向(Redirection)
300 Multiple Choices - 多种选择
301 Moved Permanently - 永久重定向
302 Found - 暂时重定向
303 See Other - 查看其他位置
304 Not Modified - 未修改
307 Temporary Redirect - 暂时重定向
#### 4xx:客户端错误(Client Error)
400 Bad Request - 错误的请求
401 Unauthorized - 未授权
403 Forbidden - 禁止访问
404 Not Found - 资源未找到
405 Method Not Allowed - 不允许使用该方法
406 Not Acceptable - 不可接受
407 Proxy Authentication Required - 需要代理身份验证
408 Request Timeout - 请求超时
409 Conflict - 冲突
410 Gone - 已删除
411 Length Required - 需要内容长度
412 Precondition Failed - 先决条件失败
413 Payload Too Large
---
|"100" ; Section 10.1.1: Continue
|"203" ; Section 10.2.4: Non-Authoritative Information
| "204" ; Section 10.2.5: No Content
| "205" ; Section 10.2.6: Reset Content
| "206" ; Section 10.2.7: Partial Content
| "300" ; Section 10.3.1: Multiple Choices
| "301" ; Section 10.3.2: Moved Permanently
| "302" ; Section 10.3.3: Found
| "303" ; Section 10.3.4: See Other
| "304" ; Section 10.3.5: Not Modified
| "305" ; Section 10.3.6: Use Proxy
| "307" ; Section 10.3.8: Temporary Redirect
| "400" ; Section 10.4.1: Bad Request
| "401" ; Section 10.4.2: Unauthorized
| "402" ; Section 10.4.3: Payment Required
| "403" ; Section 10.4.4: Forbidden
| "404" ; Section 10.4.5: Not Found
| "405" ; Section 10.4.6: Method Not Allowed
| "406" ; Section 10.4.7: Not Acceptable
| "407" ; Section 10.4.8: Proxy Authentication Required
| "408" ; Section 10.4.9: Request Time-out
| "409" ; Section 10.4.10: Conflict
| "410" ; Section 10.4.11: Gone
| "411" ; Section 10.4.12: Length Required
| "412" ; Section 10.4.13: Precondition Failed
| "413" ; Section 10.4.14: Request Entity Too Large
| "414" ; Section 10.4.15: Request-URI Too Large
| "415" ; Section 10.4.16: Unsupported Media Type
| "416" ; Section 10.4.17: Requested range not satisfiable
| "417" ; Section 10.4.18: Expectation Failed
| "500" ; Section 10.5.1: Internal Server Error
| "501" ; Section 10.5.2: Not Implemented
| "502" ; Section 10.5.3: Bad Gateway
| "503" ; Section 10.5.4: Service Unavailable
| "504" ; Section 10.5.5: Gateway Time-out
| "505" ; Section 10.5.6: HTTP Version not supported
---
上文翻译:
这是HTTP响应状态代码的列表。
"100";第10.1.1节:继续。
"203";第10.2.4节:非授权信息。
"204";第10.2.5节:无内容。
"205";第10.2.6节:重置内容。
"206";第10.2.7节:部分内容。
"300";第10.3.1节:多种选择。
"301";第10.3.2节:永久移动。
"302";第10.3.3节:已找到。
"303";第10.3.4节:参见其他。
"304";第10.3.5节:未修改。
"305";第10.3.6节:使用代理。
"307";第10.3.8节:临时重定向。
"400";第10.4.1节:错误的请求。
"401";第10.4.2节:未授权。
"402";第10.4.3节:需要付款。
"403";第10.4.4节:禁止。
"404";第10.4.5节:未找到。
"405";第10.4.6节:方法不允许。
"406";第10.4.7节:不可接受。
"407";第10.4.8节:需要代理身份验证。
"408";第10.4.9节:请求超时。
"409";第10.4.10节:冲突。
"410";第10.4.11节:已经消失。
"411";第10.4.12节:需要长度。
"412" ; 第10.4.13:预处理失败。
"413" ; 第10.4.14:请求实体过大。
"414" ; 第10.4.15:请求URI过长。
"415" ; 第10.4.16:不支持的媒体类型。
"416" ; 第10.4.17:请求的范围无法满足。
"417" ; 第10.4.18:期望失败。
"500" ; 第10.5.1:服务器内部错误。
"501" ; 第10.5.2:未实现。
"502" ; 第10.5.3:错误的网关。
"503" ; 第10.5.4:服务不可用。
"504" ; 第10.5.5:网关超时。
"505" ; 第10.5.6:不支持的HTTP版本。