跳到主要内容
uencoder

Look 上 meaning 的 HTTP 状态代码

获取 the category, reason phrase, and common usage for any HTTP status code (1xx-5xx).

  1. 1

    HTTP 状态 codes 是 grouped: 1xx informational, 2xx 成功, 3xx redirect, 4xx 客户端错误, 5xx 服务器错误. Knowing exact meaning (不仅 类别) helps 调试 API responses 和设计正确错误 handling.

  2. 2
    HTTP 状态码参考 →

    Enter 状态代码 (e.g. 418) 或 browse 通过类别. tool returns 原因 phrase ('I'm Teapot'), 类别, 和常见 usage 注记 including 当到 use vs related codes.

常见问题

应该 I use 401 或 403 为认证 failures?
401 未授权 means 请求 lacks 有效认证 credentials (不 logged 在). 403 禁止 means 服务器 refuses 到授权已认证用户 (logged 在但 不已允许). Use 401 为 '记录在 第一', 403 为 '你 can't 此'.
什么是 差集之间 301 和 308?
301 Moved Permanently 可以改变方法从 POST 到 GET 开 redirect (historical 行为). 308 Permanent Redirect preserves 方法. Use 308 为 permanent redirects where 方法必须不 改变; 301 为 compatibility 具有 older clients.

相关工具