Home >Operation and Maintenance >Windows Operation and Maintenance >What are the HTTP status codes?
HTTP status code categories
As shown below, the HTTP status code is a three-digit integer. The first number is used to identify codes in a specific category:
1XX:信息 - 请求已被接受或流程仍在继续。 2XX:确认操作已成功完成或已被理解。 3XX:重定向 - 需要进行其他操作才能完成请求。 4XX:客户端错误,指示请求无法完成或包含错误的语法。 5XX:服务器错误,指示服务器未能完成认为有效的请求。
Applications that understand HTTP status codes do not need to know all codes, which means that unknown codes also have unknown HTTP reason phrases, which will not Giving users too much information. However, these HTTP applications must understand the categories or classes we described above.
If the software doesn't know what the specific code means, it can at least identify the class. For example, if the application doesn't know about the 490 status code, it can treat it as a 400 because it falls into the same category, and can then assume that something went wrong with the client request.
HTTP status line (HTTP status code HTTP reason phrase)
Official HTTP status line
状态代码 原因短语 100 继续 101 切换协议 102 处理 200 OK 201 创建 202 公认 203 非权威信息 204 无内容 205 重置内容 206 部分内容 207 多态 300 多种选择 301 永久移动 302 发现 303 见其他 304 没有修改 305 使用代理服务器 307 临时重定向 308 永久重定向 400 错误的请求 401 未经授权的 402 需要付款 403 被禁止 404 未找到 405 方法不允许 406 不能接受的 407 需要代理验证 408 请求超时 409 冲突 410 Gone 411 长度要求 412 前提条件失败 413 请求的实体太大 414 请求URI太大 415 不支持的媒体类型 416 请求范围不满意 417 期望失败 421 错误的请求 422 不可处理的实体 423 锁定 424 失败的依赖 425 无序集合 426 需要升级 428 前提要求 429 请求太多 431 请求标头字段太大 451 法律原因不可用 500 内部服务器错误 501 未实现 502 错误的网关 503 暂停服务 504 网关超时 505 不支持HTTP版本 506 变种也谈判 507 存储空间不足 508 检测到环路 510 没有扩展 511 需要网络验证
[1] Only recommended HTTP status codes that come with HTTP reason phrase. Different reason phrases are allowed according to RFC 2616 6.1.1. You may see the HTTP reason phrase replaced with a more "friendly" description or local language.
Unofficial HTTP Status Line
Some third-party services may use the following HTTP status line as an error response, but any RFC will not Specify them.
Other Possible HTTP Status Lines
状态代码 原因短语 103 检查站 420 方法失败 420 增强你的平静 440 登录超时 449 重试 450 被Windows家长控制阻止 451 重定向 498 令牌无效 499 令牌必需 499 防病毒已禁止请求 509 超出带宽限制 530 网站被冻结
It is important to remember that although HTTP status codes may share the same number with error messages in other contexts, such as Device Manager error codes, But that doesn't mean they're related in any way.
The above is the detailed content of What are the HTTP status codes?. For more information, please follow other related articles on the PHP Chinese website!