本文主要是介绍RFC定义Http状态码集合,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
状态码
| 状态码 | 描述 | 引用 |
|---|---|---|
| 100 | Continue 继续 | [RFC9110, Section 15.2.1] |
| 101 | Switching Protocols 切换协议 | [RFC9110, Section 15.2.2] |
| 102 | Processing 处理中 | [RFC2518] |
| 103 | Early Hints 早期提示 | [RFC8297] |
| 104-199 | Unassigned 未分配 | |
| 200 | OK 成功 | [RFC9110, Section 15.3.1] |
| 201 | Created 已创建 | [RFC9110, Section 15.3.2] |
| 202 | Accepted 公认 | [RFC9110, Section 15.3.3] |
| 203 | Non-Authoritative Information 非权威信息 | [RFC9110, Section 15.3.4] |
| 204 | No Content 无内容 | [RFC9110, Section 15.3.5] |
| 205 | Reset Content 重置内容 | [RFC9110, Section 15.3.6] |
| 206 | Partial Content 部分内容 | [RFC9110, Section 15.3.7] |
| 207 | Multi-Status 多状态 | [RFC4918] |
| 208 | Already Reported 已举报 | [RFC5842] |
| 209-225 | Unassigned 未分配 | |
| 226 | IM Used 使用即时通讯工具 | [RFC3229] |
| 227-299 | Unassigned 未分配 | |
| 300 | Multiple Choices 多种选择 | [RFC9110, Section 15.4.1] |
| 301 | Moved Permanently 永久重定向 | [RFC9110, Section 15.4.2] |
| 302 | Found 临时重定向 | [RFC9110, Section 15.4.3] |
| 303 | See Other 查看其他 | [RFC9110, Section 15.4.4] |
| 304 | Not Modified 未修改 | [RFC9110, Section 15.4.5] |
| 305 | Use Proxy 使用代理服务器 | [RFC9110, Section 15.4.6] |
| 306 | (Unused) (没用过) | [RFC9110, Section 15.4.7] |
| 307 | Temporary Redirect 临时重定向 | [RFC9110, Section 15.4.8] |
| 308 | Permanent Redirect 永久重定向 | [RFC9110, Section 15.4.9] |
| 309-399 | Unassigned 未分配 | |
| 400 | Bad Request 错误的请求 | [RFC9110, Section 15.5.1] |
| 401 | Unauthorized 未经授权 | [RFC9110, Section 15.5.2] |
| 402 | Payment Required 需要付款 | [RFC9110, Section 15.5.3] |
| 403 | Forbidden 禁止 | [RFC9110, Section 15.5.4] |
| 404 | Not Found 未找到 | [RFC9110, Section 15.5.5] |
| 405 | Method Not Allowed 不允许的方法 | [RFC9110, Section 15.5.6] |
| 406 | Not Acceptable 不能接受的 | [RFC9110, Section 15.5.7] |
| 407 | Proxy Authentication Required 需要代理身份验证 | [RFC9110, Section 15.5.8] |
| 408 | Request Timeout 请求超时 | [RFC9110, Section 15.5.9] |
| 409 | Conflict 冲突 | [RFC9110, Section 15.5.10] |
| 410 | Gone 请求的资源已被永久删除 | [RFC9110, Section 15.5.11] |
| 411 | Length Required 所需长度 | [RFC9110, Section 15.5.12] |
| 412 | Precondition Failed 前提条件失败 | [RFC9110, Section 15.5.13] |
| 413 | Content Too Large 内容太大 | [RFC9110, Section 15.5.14] |
| 414 | URI Too Long URI 太长 | [RFC9110, Section 15.5.15] |
| 415 | Unsupported Media Type 不支持的媒体类型 | [RFC9110, Section 15.5.16] |
| 416 | Range Not Satisfiable 范围不可满足 | [RFC9110, Section 15.5.17] |
| 417 | Expectation Failed 期望落空 | [RFC9110, Section 15.5.18] |
| 418 | (Unused) (没用过) | [RFC9110, Section 15.5.19] |
| 419-420 | Unassigned 未分配 | |
| 421 | Misdirected Request 错误的请求 | [RFC9110, Section 15.5.20] |
| 422 | Unprocessable Content 无法处理的内容 | [RFC9110, Section 15.5.21] |
| 423 | Locked 锁定 | [RFC4918] |
| 424 | Failed Dependency 依赖失败 | [RFC4918] |
| 425 | Too Early 太早了 | [RFC8470] |
| 426 | Upgrade Required 需要升级 | [RFC9110, Section 15.5.22] |
| 427 | Unassigned 未分配 | |
| 428 | Precondition Required 需要先决条件 | [RFC6585] |
| 429 | Too Many Requests 请求过多 | [RFC6585] |
| 430 | Unassigned 未分配 | |
| 431 | Request Header Fields Too Large 请求标头字段太大 | [RFC6585] |
| 432-450 | Unassigned 未分配 | |
| 451 | Unavailable For Legal Reasons 因法律原因无法使用 | [RFC7725] |
| 452-499 | Unassigned 未分配 | |
| 500 | Internal Server Error 内部服务器错误 | [RFC9110, Section 15.6.1] |
| 501 | Not Implemented 未实现 | [RFC9110, Section 15.6.2] |
| 502 | Bad Gateway 网关错误 | [RFC9110, Section 15.6.3] |
| 503 | Service Unavailable 服务不可用 | [RFC9110, Section 15.6.4] |
| 504 | Gateway Timeout 网关超时 | [RFC9110, Section 15.6.5] |
| 505 | HTTP Version Not Supported HTTP 版本不支持 | [RFC9110, Section 15.6.6] |
| 506 | Variant Also Negotiates 变体也协商 | [RFC2295] |
| 507 | Insufficient Storage 存储空间不足 | [RFC4918] |
| 508 | Loop Detected 检测到循环 | [RFC5842] |
| 509 | Unassigned 未分配 | |
| 510 | Not Extended (OBSOLETED) 未扩展(已废弃) | [RFC2774] |
| 511 | Network Authentication Required 需要网络身份验证 | [RFC6585] |
| 512-599 | Unassigned 未分配 |
参考文档:
RFC9110
这篇关于RFC定义Http状态码集合的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!