Monu Tools

HTTP 状态码

搜索并查询 HTTP 状态码及其含义,从 1xx 到 5xx。

如何使用 HTTP 状态码

  1. 01

    输入状态码或其名称的一部分。

  2. 02

    浏览按类别着色的匹配代码。

  3. 03

    在构建或调试 API 时将它们用作快速参考。

A searchable status reference

A searchable reference of HTTP status codes, the three-digit numbers a server returns with every response to say what happened, from 1xx through 5xx, with their standard messages and grouped by category.

It is a fast lookup while you build or debug an API or website: type a code or part of its name and the matching entries appear, so you do not have to remember every number.

What the categories mean

The categories tell you most of the story at a glance: 1xx informational, 2xx success, 3xx redirection, 4xx client errors (the request was wrong) and 5xx server errors (the server failed). Each group is shown in its own color so you can scan quickly.

Codes you will meet often

Some codes come up constantly: 200 OK, 201 Created, 301 and 302 redirects, 304 Not Modified for caching, 400 Bad Request, 401 and 403 for auth, 404 Not Found, 409 Conflict, 422 for validation, 429 Too Many Requests, and 500, 502 and 503 on the server side.

Codes that get confused

A frequent source of confusion is 401 versus 403: 401 Unauthorized means you have not authenticated, while 403 Forbidden means you are authenticated but not allowed. Another is 301 versus 302: a permanent versus a temporary redirect, which search engines treat very differently.

Instant and offline

The reference is static data shipped with the page, so searching is instant and works offline.

常见问题

各类别是什么意思?

1xx 为信息性,2xx 为成功,3xx 为重定向,4xx 为客户端错误,5xx 为服务器错误。每类以各自的颜色显示。

401 和 403 有何区别?

401 Unauthorized 表示你未通过身份验证,而 403 Forbidden 表示你已通过身份验证但无权访问该资源。

418 是真实的状态码吗?

418 I'm a Teapot 来自一个愚人节玩笑标准。它在实践中不被使用,但被广泛认知。

来源

嵌入此工具

将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。

<iframe src="https://monu.tools/embed/zh/http-status-codes" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相关工具