无需登录 数据私有 本地保存

HTTP状态码参考表 - 在线查询含义与分类

42
0
0
0

HTTP 状态码参考表

输入关键词或状态码快速查询,支持按类别筛选。点击详情查看官方描述,一键复制状态码。

状态码 含义 分类 操作
100Continue1xx
101Switching Protocols1xx
102Processing1xx
103Early Hints1xx
200OK2xx
201Created2xx
202Accepted2xx
203Non-Authoritative Information2xx
204No Content2xx
205Reset Content2xx
206Partial Content2xx
207Multi-Status2xx
208Already Reported2xx
226IM Used2xx
300Multiple Choices3xx
301Moved Permanently3xx
302Found3xx
303See Other3xx
304Not Modified3xx
305Use Proxy3xx
307Temporary Redirect3xx
308Permanent Redirect3xx
400Bad Request4xx
401Unauthorized4xx
402Payment Required4xx
403Forbidden4xx
404Not Found4xx
405Method Not Allowed4xx
406Not Acceptable4xx
407Proxy Authentication Required4xx
408Request Timeout4xx
409Conflict4xx
410Gone4xx
411Length Required4xx
412Precondition Failed4xx
413Payload Too Large4xx
414URI Too Long4xx
415Unsupported Media Type4xx
416Range Not Satisfiable4xx
417Expectation Failed4xx
418I'm a teapot4xx
421Misdirected Request4xx
422Unprocessable Entity4xx
423Locked4xx
424Failed Dependency4xx
425Too Early4xx
426Upgrade Required4xx
428Precondition Required4xx
429Too Many Requests4xx
431Request Header Fields Too Large4xx
451Unavailable For Legal Reasons4xx
500Internal Server Error5xx
501Not Implemented5xx
502Bad Gateway5xx
503Service Unavailable5xx
504Gateway Timeout5xx
505HTTP Version Not Supported5xx
506Variant Also Negotiates5xx
507Insufficient Storage5xx
508Loop Detected5xx
510Not Extended5xx
511Network Authentication Required5xx
常见问题 FAQ

HTTP 状态码是服务器对客户端请求返回的 3 位数字代码,用于告知请求的处理结果。它分为五大类,第一位数字代表分类:1xx(信息)、2xx(成功)、3xx(重定向)、4xx(客户端错误)、5xx(服务器错误)。

401 Unauthorized 表示用户未提供有效的身份验证凭据,需要登录;而 403 Forbidden 表示服务器理解请求,但拒绝授权,即使身份验证通过也可能因权限不足返回 403。

500 Internal Server Error 表示服务器内部发生了意外错误。应先检查服务器日志,排查代码逻辑、数据库连接、文件权限等问题。客户端可尝试刷新页面或稍后重试。

在浏览器开发者工具(F12)的 Network(网络)面板中,每个请求都会显示其状态码。也可通过命令行工具如 curl -I 查看响应头。

301 Moved Permanently 表示资源已被永久移动到新 URL,搜索引擎会更新索引;302 Found 表示临时重定向,搜索引擎通常继续索引原 URL。对于长期迁移应使用 301。