跳到主要内容

HTTP 状态码速查

UpBox优盒工具箱,免费在线 HTTP 状态码速查:按 1xx 到 5xx 分类检索 60 余个状态码的中文含义、典型场景与常见误用,排查接口问题时不用翻文档。

无需注册 · 数据不上传No sign-up · nothing uploaded

按类别与关键词筛选Filter by class and keyword

61 个状态码

状态码只说明结果的性质,不说明原因;排查时先看是 4xx 还是 5xx,再按 Retry-After、WWW-Authenticate 这类响应头定位

本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器

工具介绍

接口突然返回 403,第一反应往往是「权限没开」,但真实原因可能是凭证过期、IP 被拦,或者方法根本不对。 A sudden 403 often reads as "permission not granted", yet the real cause may be an expired token, a blocked IP, or the wrong method.

这页把 1xx 到 5xx 的常见状态码收在一起,按类别筛选、按关键词搜索,每条都写了中文含义和一个典型场景。 This page gathers the common codes from 1xx to 5xx, filterable by class and searchable by keyword, each with its Chinese meaning and one typical cause.

  • 六大类别筛选Six classes
  • 关键词搜索Keyword search
  • 中英名称对照Bilingual names
  • 典型场景说明Typical causes

使用说明

  1. 选类别。Pick a class.
  2. 输入关键词。Type a keyword.
  3. 读含义与场景。Read meaning and cause.
  4. 对照响应头排查。Check the headers.

常见问题

401 和 403 有什么区别?What separates 401 from 403?
401 是「你是谁还不确定」,403 是「知道你是谁但不给这个权限」。401 means "identity unconfirmed", while 403 means "identity known but this permission is denied".
502 和 504 哪个更严重?Is 502 or 504 worse?
502 是上游回了无效响应,504 是上游干脆没回;两者都指向网关之后的那一层。502 means upstream answered with garbage, 504 means it never answered; both point past the gateway.
重定向该用 301 还是 302?Should a redirect be 301 or 302?
永久换址用 301 或 308,临时活动用 302 或 307,要保留原方法就用 307/308。Use 301 or 308 for a permanent move, 302 or 307 for a temporary one, and 307/308 when the method must be preserved.
收到 429 该怎么处理?How to handle a 429?
按 Retry-After 退避重试,并检查是不是并发太高或没做缓存。Back off per Retry-After before retrying, and check whether concurrency is too high or caching is missing.
广告位

此处为广告位,可放置你的推广素材

支持图片、文字或 HTML 代码,替换本区块内容即可投放

浏览其他分类