美文网首页
常见的HTTP状态码

常见的HTTP状态码

作者: tinychen | 来源:发表于2021-03-18 09:36 被阅读0次
    image

    本文主要记录了一些常见的HTTP状态码,内容参考维基百科

    1、标准扩展码

    1.1 1xx Informational 信息化

    • 100 Continue 继续

    • 101 Switching Protocols 交换协议

    • 102 Processing 处理

    1.2 2xx Success 成功

    • 200 OK

    • 201 Created 创建

    • 202 Accepted 已接受

    • 203 Non-Authoritative Information 非授权信息

    • 204 No Content 无内容

    • 205 Reset Content 重置内容

    • 206 Partial Content 部分内容

    • 207 Multi-Status 多状态

    • 208 Already Reported 已报告

    • 226 IMIM Used 使用的

    1.3 3xx Redirection 重定向

    • 300 Multiple Choices 多种选择

    • 301 Moved Permanently 永久移动

    • 302 Found 发现

    • 303 See Other 查看其它

    • 304 Not Modified 未修改

    • 305 Use Proxy 使用代理

    • 306 Switch Proxy 开关代理

    • 307 Temporary Redirect 临时重定向

    • 308 Permanent Redirect 永久重定向

    1.4 4xx Client Error 客户端错误

    • 400 Bad Request 错误的请求

    • 401 Unauthorized 未授权

    • 402 Payment Required 需要付费

    • 403Forbidden 拒绝访问

    • 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 太长

    • 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 不可出于法律原因

    1.5 5xx Server Error 服务器错误

    • 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 网络需要身份验证

    2、非官方扩展码

    • 103 Checkpoint 检查点
    • 420 Method Failure (Spring Framework) 故障的方法(Spring框架)
    • 420 Enhance Your Calm (Twitter) 增强您的平静(微博)
    • 450 Blocked by Windows Parental Controls (Microsoft) 被Windows阻止家长控制(微软)
    • 498 Invalid Token (Esri) 无效的令牌(ESRI的)
    • 499 Token Required (Esri) 令牌必需(ESRI的)
    • 499 Request has been forbidden by antivirus 请求已被禁止反病毒
    • 509 Bandwidth Limit Exceeded (Apache Web Server/cPanel) 超出带宽限制(Apache的Web服务器/的cPanel)
    • 530 Site is frozen 网站被冻结

    3、互联网信息服务扩展状态码

    • 440 Login Timeout 登录超时

    • 449 Retry With 重新发送带

    • 451 Redirect 重定向

    4、NGINX 扩展状态码

    • 444 No Response 没有响应

    • 495 SSL Certificate Error 证书错误

    • 496 SSL Certificate Required证书要求

    • 497 HTTP Request Sent to HTTPS Port 发送到HTTPS端口请求

    • 499 Client Closed Request 客户端请求关闭

    相关文章

      网友评论

          本文标题:常见的HTTP状态码

          本文链接:https://www.haomeiwen.com/subject/abcmfltx.html