QCSunny Lab

HTTP Status Code LookupHTTP 状态码查询

Statistics统计数据
Output转换输出

Every status code a real site returns — 1xx through 5xx plus the ones RFCs made famous (418, 451) — with what it means and what typically causes it, in both languages.

Search by number or by keyword: "redirect" lists the 3xx family, "teapot" finds 418, "timeout" surfaces 408 and 504.

Frequently asked questions

301 vs 308 — which one?

Both are permanent. 301 lets clients rewrite POST to GET (a historic quirk); 308 requires the method to be repeated. Use 308 when API compatibility matters, 301 for plain pages.

Why 202 instead of 200 for my job API?

200 says "done", 202 says "accepted, still working" — the honest code for async queues, and what polling clients expect.

中文说明

真实站点会返回的每一个状态码——1xx 到 5xx,外加 RFC 捧红的那些(418、451)——中英双语给出含义与常见成因。

按数字或关键词搜索:"redirect" 列出 3xx 全家,"teapot" 找到 418,"timeout" 带出 408 与 504。

常见问题

301 和 308 选哪个?

都是永久重定向。301 允许客户端把 POST 改写成 GET(历史包袱);308 要求原样重发方法。API 兼容性敏感时用 308,普通页面用 301。

异步任务接口为什么用 202 而不是 200?

200 表示「完成」,202 表示「已受理、处理中」——这是异步队列的诚实答案,轮询客户端也以此为约定。