跳到主內容
UniKit

HTTP 狀態碼速查

完整的 HTTP 狀態碼速查表:1xx 到 5xx 的標準碼與非標準碼(418、429、451、499、599 等),支援按碼或關鍵字搜尋、按類別篩選並複製。

瀏覽器本機執行所有計算都在你的瀏覽器裡完成,資料不會離開本機。

搜尋狀態碼

共 65 筆 / 65

100Continue標準

中文含義服务器已收到请求头,客户端应继续发送请求体。

英文說明The server received the request headers; the client should continue sending the body.

101Switching Protocols標準

中文含義服务器按客户端的 Upgrade 请求切换协议。

英文說明The server is switching protocols as requested by the client.

102Processing標準

中文含義WebDAV:服务器已收到请求并正在处理,暂时没有响应。

英文說明WebDAV: the server has received the request and is still processing it.

103Early Hints標準

中文含義在最终响应之前先返回资源预加载提示。

英文說明Returns resource hints before the final response.

200OK標準

中文含義请求成功,响应内容在正文里。

英文說明The request succeeded and the response body carries the result.

201Created標準

中文含義请求成功并创建了新资源,通常配合 Location 头返回新地址。

英文說明The request succeeded and a new resource was created; Location usually points to it.

202Accepted標準

中文含義请求已被接受但尚未处理完成,结果稍后可用。

英文說明The request was accepted but processing is not finished yet.

203Non-Authoritative Information標準

中文含義返回的元信息来自代理,不是源服务器的最新版本。

英文說明The returned metadata comes from a proxy rather than the origin server.

204No Content標準

中文含義请求成功但正文为空,常用于删除或提交后的响应。

英文說明The request succeeded but there is no body to return.

205Reset Content標準

中文含義请求成功,客户端应重置当前文档的视图(如表单)。

英文說明The client should reset the document view, for example a form.

206Partial Content標準

中文含義断点续传:只返回了资源的一部分。

英文說明Range request: only a part of the resource is returned.

207Multi-Status標準

中文含義WebDAV:多个子请求各有自己的状态码。

英文說明WebDAV: several sub-requests each carry their own status.

208Already Reported標準

中文含義WebDAV:同一集合里的成员已经在前面的响应里报告过。

英文說明WebDAV: the members were already reported in an earlier part of the response.

226IM Used標準

中文含義服务器已完成实例操纵,返回增量结果。

英文說明The server fulfilled the request using instance manipulations.

300Multiple Choices標準

中文含義请求的资源有多种表示,需要客户端选择。

英文說明The resource has multiple representations and the client should choose one.

301Moved Permanently標準

中文含義资源永久重定向到新地址,搜索引擎会更新索引。

英文說明The resource moved permanently; search engines update their index.

302Found標準

中文含義资源临时重定向到另一个地址。

英文說明Temporary redirect to another address.

303See Other標準

中文含義重定向到另一个地址,并且应该改用 GET 获取结果。

英文說明Redirect to another address, which should be fetched with GET.

304Not Modified標準

中文含義命中协商缓存,资源没有变化,直接使用本地副本。

英文說明Conditional cache hit: the resource is unchanged, use the local copy.

305Use Proxy非標準

中文含義已弃用:要求通过代理访问资源。

英文說明Deprecated: the resource must be accessed through a proxy.

306Unused非標準

中文含義已废弃:历史遗留的状态码,保留未用。

英文說明Deprecated: a historical code that is reserved and unused.

307Temporary Redirect標準

中文含義临时重定向,但必须保持原来的请求方法。

英文說明Temporary redirect that must keep the original request method.

308Permanent Redirect標準

中文含義永久重定向,同样必须保持原来的请求方法。

英文說明Permanent redirect that must keep the original request method.

400Bad Request標準

中文含義请求语法错误或参数不合法,服务器无法处理。

英文說明The request is malformed or the parameters are invalid.

401Unauthorized標準

中文含義未认证:需要先登录或提供有效的凭证。

英文說明Not authenticated: sign in or provide valid credentials first.

402Payment Required標準

中文含義预留状态码,常被用于需要付费才能访问的场景。

英文說明Reserved; often used for APIs that require payment.

403Forbidden標準

中文含義已认证但没有访问权限。

英文說明Authenticated but not allowed to access the resource.

404Not Found標準

中文含義请求的资源不存在。

英文說明The requested resource does not exist.

405Method Not Allowed標準

中文含義资源存在,但不支持这个请求方法。

英文說明The resource exists but does not support this HTTP method.

406Not Acceptable標準

中文含義无法返回符合 Accept 头要求的响应。

英文說明No representation matches the Accept header.

407Proxy Authentication Required標準

中文含義需要先通过代理服务器认证。

英文說明The request must authenticate with the proxy first.

408Request Timeout標準

中文含義服务器等待请求超时,客户端可以重试。

英文說明The server timed out waiting for the request.

409Conflict標準

中文含義请求与资源当前状态冲突,例如并发写入。

英文說明The request conflicts with the current state of the resource.

410Gone標準

中文含義资源曾经存在但已被永久删除。

英文說明The resource existed but has been permanently removed.

411Length Required標準

中文含義缺少 Content-Length 头。

英文說明The Content-Length header is required.

412Precondition Failed標準

中文含義条件请求的预置条件(If-Match 等)不满足。

英文說明A precondition such as If-Match failed.

413Content Too Large標準

中文含義请求体超过服务器允许的大小。

英文說明The request body exceeds the size the server accepts.

414URI Too Long標準

中文含義请求的 URL 太长。

英文說明The request URL is too long.

415Unsupported Media Type標準

中文含義请求体的媒体类型不被支持。

英文說明The media type of the request body is not supported.

416Range Not Satisfiable標準

中文含義请求的字节范围无法满足。

英文說明The requested byte range cannot be satisfied.

417Expectation Failed標準

中文含義Expect 头里的期望不能满足。

英文說明The expectation given in the Expect header cannot be met.

418I'm a teapot非標準

中文含義愚人节彩蛋状态码:服务器是一把茶壶,不能煮咖啡。

英文說明April Fools code: the server is a teapot and cannot brew coffee.

421Misdirected Request標準

中文含義请求被发给了无法为该域名提供服务的服务器。

英文說明The request was directed at a server that cannot serve this host.

422Unprocessable Content標準

中文含義请求格式正确但语义有误,无法处理。

英文說明The request is well-formed but semantically invalid.

423Locked標準

中文含義WebDAV:资源已被锁定。

英文說明WebDAV: the resource is locked.

424Failed Dependency標準

中文含義WebDAV:前置请求失败,本次请求无法完成。

英文說明WebDAV: the request failed because a previous request failed.

425Too Early標準

中文含義服务器不愿处理可能被重放的早期请求。

英文說明The server is unwilling to process a request that might be replayed.

426Upgrade Required標準

中文含義需要升级到其他协议才能继续。

英文說明The client should switch to another protocol.

428Precondition Required標準

中文含義要求请求带上条件头,避免并发覆盖。

英文說明The origin server requires the request to be conditional.

429Too Many Requests標準

中文含義短时间内请求过多,已被限流,请稍后重试。

英文說明Too many requests in a short time: rate limited.

431Request Header Fields Too Large標準

中文含義请求头总大小超出限制。

英文說明The request header fields are too large.

451Unavailable For Legal Reasons標準

中文含義因法律原因无法提供该资源。

英文說明The resource cannot be provided for legal reasons.

499Client Closed Request非標準

中文含義非标准(nginx):客户端在服务器响应前断开了连接。

英文說明Non-standard (nginx): the client closed the connection before the response.

500Internal Server Error標準

中文含義服务器内部错误,通常是代码异常。

英文說明An unexpected error occurred on the server.

501Not Implemented標準

中文含義服务器不支持该请求需要的功能。

英文說明The server does not support the functionality required.

502Bad Gateway標準

中文含義网关或代理从上游收到了无效响应。

英文說明The gateway received an invalid response from the upstream server.

503Service Unavailable標準

中文含義服务暂时不可用,通常是过载或维护中。

英文說明The server is temporarily unavailable, for example overloaded or in maintenance.

504Gateway Timeout標準

中文含義网关等待上游响应超时。

英文說明The gateway timed out waiting for the upstream server.

505HTTP Version Not Supported標準

中文含義服务器不支持请求使用的 HTTP 版本。

英文說明The HTTP protocol version used in the request is not supported.

506Variant Also Negotiates標準

中文含義内容协商配置错误,导致循环引用。

英文說明Transparent content negotiation results in a circular reference.

507Insufficient Storage標準

中文含義WebDAV:服务器存储空间不足。

英文說明WebDAV: the server cannot store the representation needed.

508Loop Detected標準

中文含義WebDAV:处理请求时检测到死循环。

英文說明WebDAV: an infinite loop was detected while processing the request.

510Not Extended標準

中文含義需要对请求做进一步扩展才能满足策略。

英文說明Further extensions to the request are required.

511Network Authentication Required標準

中文含義需要先通过网络的认证(例如公共 Wi-Fi 登录)。

英文說明The client needs to authenticate, for example on a captive portal.

599Network Connect Timeout Error非標準

中文含義非标准:代理连接上游超时(常见于 nginx 日志)。

英文說明Non-standard: the proxy timed out connecting upstream.

這個工具能做什麼

  • 介面返回了一個沒見過的狀態碼,或者日誌裡全是 4xx/5xx,快速查它的標準原因短語和中英文含義,判斷責任在客戶端還是服務端。
  • 準備 API 文件或錯誤碼錶時,直接抄標準原因短語(404 Not Found、429 Too Many Requests),避免自造寫法。
  • 看 nginx access log 時確認 499、599 這類非標準碼的來源(都是 nginx 自己的約定,不是 RFC 定義)。
  • 教別人 HTTP 時按類別(1xx/2xx/3xx/4xx/5xx)瀏覽,從 4xx 裡分清「沒認證(401)」和「沒許可權(403)」。

範例

輸入

404

輸出

404 Not Found(標準)
中文含義:請求的資源不存在。
英文說明:The requested resource does not exist.

頁面上每條結果就是這三行:狀態碼與原因短語 + 「標準 / 非標準」標記、中文含義、英文說明;複製按鈕給出的是一行純文本 404 Not Found。純數字輸入會先精確匹配,再退化為字首匹配:輸入 404 只返回這一條,輸入 4 會列出全部 30 條 4xx。要按關鍵字查就輸入英文單詞或中文,例如 timeout 會命中 408、504、599。

常見問題

401 和 403 到底有什麼區別?

401 Unauthorized 是「還沒認證」,服務端會帶 WWW-Authenticate 頭告訴你該怎麼認證;403 Forbidden 是「已經認證了但沒許可權」,再登入也沒用。名字上 401 更準確的叫法其實是 Unauthenticated,這是規範裡的歷史遺留。

4xx 和 5xx 的責任該怎麼劃?

4xx 表示請求本身有問題,重試同樣的請求通常還是失敗,要先改請求;5xx 表示服務端出錯,客戶端可以按退避策略重試。502/504 一般出在閘道器到上游這一段,429 和 503 都會帶 Retry-After 告訴你等多久。

為什麼 418、499、599 標著「非標準」?

因為它們不在 IETF 登錄檔裡。418 I'm a teapot 是 1998 年愚人節 RFC 2324 留下的彩蛋;499 與 599 是 nginx 自己定義的(客戶端提前斷開、代理連線上游超時),只應在日誌裡出現,別寫進對外 API。

304 為什麼沒有響應體?

304 Not Modified 是協商快取的結果:瀏覽器帶 If-None-Match 或 If-Modified-Since 去問,服務端發現資源沒變,就只回一個 304 讓瀏覽器用本地副本,省下重新傳輸的流量。所以它既沒有正文,通常也沒有 Content-Type。

搜尋時中文關鍵詞能用嗎?

能。非數字輸入會在原因短語、中文含義和英文說明三處做不區分大小寫的包含匹配,所以搜「重定向」「超時」「限流」都能命中相關狀態碼。數字輸入則走精確匹配與字首匹配,混著字母(如 4xx)不會命中。

關鍵字:状态码http 状态码响应码httpstatus code404500http statusrest

同類工具