-
1xx(信息性状态码):
- 100 Continue(继续)
- 101 Switching Protocols(切换协议)
-
2xx(成功状态码):
- 200 OK(请求成功)
- 201 Created(创建成功)
- 202 Accepted(已接受)
- 203 Non-Authoritative Information(非权威性信息)
- 204 No Content(无内容)
- 205 Reset Content(重置内容)
- 206 Partial Content(部分内容)
-
3xx(重定向状态码):
- 300 Multiple Choices(多种选择)
- 301 Moved Permanently(永久移动)
- 302 Found(临时移动)
- 303 See Other(查看其他位置)
- 304 Not Modified(未修改)
- 307 Temporary Redirect(临时重定向)
- 308 Permanent Redirect(永久重定向)
-
4xx(客户端错误状态码):
- 400 Bad Request(错误请求)
- 401 Unauthorized(未授权)
- 402 Payment Required(需要付款)
- 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(负载过大)
- 414 URI Too Long(URI过长)
- 415 Unsupported Media Type(不支持的媒体类型)
- 416 Range Not Satisfiable(范围不符合要求)
- 417 Expectation Failed(期望失败)
- 418 I'm a teapot(我是一个茶壶)
- 421 Misdirected Request(错误的请求方向)
- 422 Unprocessable Entity(无法处理的实体)
- 423 Locked(被锁定)
- 424 Failed Dependency(依赖关系失败)
- 426 Upgrade Required(需要升级)
- 428 Precondition Required(要求先决条件)
- 429 Too Many Requests(请求过多)
- 431 Request Header Fields Too Large(请求头字段过大)
- 451 Unavailable For Legal Reasons(因法律原因不可用)
-
5xx(服务器错误状态码):
- 500 Internal Server Error(服务器内部错误)
- 501 Not Implemented(未实现)
- 502 Bad Gateway(网关错误)
- 503 Service Unavailable(服务不可用)
- 504 Gateway Timeout(网关超时)
- 505 HTTP Version Not Supported(HTTP版本不支持)
- 506 Variant Also Negotiates(协商处理)
- 507 Insufficient Storage(存储空间不足)
- 508 Loop Detected(检测到循环)
- 510 Not Extended(未扩展)
- 511 Network Authentication Required(需要网络身份验证)
这些状态码和解释是根据HTTP协议标准定义的,用于表示客户端请求和服务器响应之间的处理结果。