Continue
RFC 9110The server received the request headers and the client should proceed to send the request body.
Switching Protocols
RFC 9110The server is switching protocols as requested by the client in the Upgrade header, for example to WebSocket.
Processing
RFC 2518The server has received and is processing the request, but no response is available yet. Used by WebDAV.
Early Hints
RFC 8297Returns some response headers before the final response so the client can start preloading resources.
OK
RFC 9110The request succeeded. The meaning of success depends on the HTTP method used.
Created
RFC 9110The request succeeded and a new resource was created, usually in response to POST or PUT.
Accepted
RFC 9110The request was accepted for processing, but the processing has not completed and may still fail.
Non-Authoritative Information
RFC 9110The returned metadata is from a local or third-party copy rather than the origin server.
No Content
RFC 9110The request succeeded but there is no content to send in the response body.
Reset Content
RFC 9110The request succeeded and the client should reset the document view that sent the request.
Partial Content
RFC 9110The server is delivering only part of the resource in response to a Range header, used for resumable downloads.
Multi-Status
RFC 4918Conveys information about multiple resources where several status codes apply. Used by WebDAV.
Already Reported
RFC 5842The members of a WebDAV binding have already been enumerated and are not being included again.
IM Used
RFC 3229The server fulfilled a GET request and the response represents the result of instance manipulations applied.
Multiple Choices
RFC 9110The request has more than one possible response and the client should choose one of them.
Moved Permanently
RFC 9110The resource has permanently moved to a new URL given in the Location header. Search engines update their links.
Found
RFC 9110The resource is temporarily at a different URL. The client should keep using the original URL for future requests.
See Other
RFC 9110The response is at another URL that should be retrieved with a GET request. Common after a form POST.
Not Modified
RFC 9110The cached copy is still valid, so the server sends no body. Used with conditional requests to save bandwidth.
Temporary Redirect
RFC 9110The resource is temporarily at another URL and the client must reuse the same HTTP method and body.
Permanent Redirect
RFC 9110The resource has permanently moved and the client must reuse the same HTTP method and body.
Bad Request
RFC 9110The server cannot process the request because of a client error such as malformed syntax or invalid framing.
Unauthorized
RFC 9110Authentication is required and has failed or not been provided. The response includes a WWW-Authenticate header.
Payment Required
RFC 9110Reserved for future use. Occasionally used by APIs to signal that a paid plan or quota is required.
Forbidden
RFC 9110The server understood the request but refuses to authorize it. Authenticating will not help.
Not Found
RFC 9110The server cannot find the requested resource. The URL may be wrong or the resource may have been removed.
Method Not Allowed
RFC 9110The request method is known but not supported by the target resource, for example POST to a read-only endpoint.
Not Acceptable
RFC 9110The resource cannot produce a response matching the Accept headers sent by the client.
Proxy Authentication Required
RFC 9110The client must first authenticate with a proxy before the request can proceed.
Request Timeout
RFC 9110The server timed out waiting for the request. The client may repeat the request later.
Conflict
RFC 9110The request conflicts with the current state of the resource, such as an edit that clashes with another change.
Gone
RFC 9110The resource is permanently gone with no forwarding address. More specific and final than 404.
Length Required
RFC 9110The server refuses the request because it lacks a defined Content-Length header.
Precondition Failed
RFC 9110A precondition in the request headers, such as If-Match, evaluated to false on the server.
Content Too Large
RFC 9110The request body is larger than the server is willing or able to process. Formerly Payload Too Large.
URI Too Long
RFC 9110The requested URI is longer than the server is willing to interpret, often from too many query parameters.
Unsupported Media Type
RFC 9110The request body is in a format the resource does not support, such as an unexpected Content-Type.
Range Not Satisfiable
RFC 9110The Range header requests a portion the server cannot supply, for example beyond the end of the file.
Expectation Failed
RFC 9110The expectation in the Expect request header could not be met by the server.
I'm a Teapot
RFC 2324An April Fools joke code from 1998 that returns when a teapot is asked to brew coffee. Sometimes used as an easter egg.
Misdirected Request
RFC 9110The request was sent to a server that cannot produce a response for the combination of scheme and authority.
Unprocessable Content
RFC 9110The request is well formed but has semantic errors that prevent processing, common in API validation failures.
Locked
RFC 4918The resource being accessed is locked. Used by WebDAV.
Failed Dependency
RFC 4918The request failed because it depended on another request that failed. Used by WebDAV.
Too Early
RFC 8470The server is unwilling to risk processing a request that might be replayed.
Upgrade Required
RFC 9110The client should switch to a different protocol given in the Upgrade header, such as a newer TLS version.
Precondition Required
RFC 6585The origin server requires the request to be conditional to prevent lost-update conflicts.
Too Many Requests
RFC 6585The client has sent too many requests in a given time. Rate limiting responses often include a Retry-After header.
Request Header Fields Too Large
RFC 6585The server refuses the request because the header fields are too large, individually or in total.
Unavailable For Legal Reasons
RFC 7725The resource is unavailable because of a legal demand, such as a government censorship order.
Internal Server Error
RFC 9110A generic error meaning the server hit an unexpected condition and cannot give a more specific message.
Not Implemented
RFC 9110The server does not support the functionality required to fulfil the request, such as an unknown method.
Bad Gateway
RFC 9110A server acting as a gateway or proxy received an invalid response from an upstream server.
Service Unavailable
RFC 9110The server is temporarily unable to handle the request, usually from overload or maintenance. Retry later.
Gateway Timeout
RFC 9110A gateway or proxy did not get a timely response from the upstream server it needed to complete the request.
HTTP Version Not Supported
RFC 9110The server does not support the HTTP protocol version used in the request.
Variant Also Negotiates
RFC 2295A content negotiation configuration error caused the chosen variant to itself engage in negotiation.
Insufficient Storage
RFC 4918The server cannot store the representation needed to complete the request. Used by WebDAV.
Loop Detected
RFC 5842The server detected an infinite loop while processing the request. Used by WebDAV.
Not Extended
RFC 2774Further extensions to the request are required for the server to fulfil it.
Network Authentication Required
RFC 6585The client must authenticate to gain network access, typically shown by a captive portal on public Wi-Fi.
什麼是 HTTP 狀態代碼?
HTTP 狀態代碼是伺服器每次回應都會傳回的三位數,以告訴客戶端其請求發生了什麼。代碼 200 表示請求成功,404 表示頁面未找到,500 表示伺服器出錯。此參考列出了 Internet 工程任務組定義的每個標準狀態代碼,按類別分組,並附有每個標準狀態代碼含義的純英語解釋以及定義它的規範的連結。您可以按數字、姓名或描述中的單字進行搜尋。
狀態代碼分為五個類別,由第一位數字標識。 1xx 類別是資訊性的,表示請求已收到且處理仍在繼續。 2xx 類別意味著成功,因此請求已被接收、理解和接受。 3xx 類別是重定向,告訴客戶端資源位於其他地方或未更改。 4xx 類別是客戶端錯誤,表示請求格式錯誤或不允許。 5xx 類別是伺服器錯誤,其中請求有效但伺服器未能滿足它。僅了解類別即可告訴您是否修復請求或查看伺服器。
開發人員不斷尋求狀態代碼參考。前端工程師調試為什麼API 呼叫傳回401 而不是200,後端開發人員決定是否發送400 或422 以驗證失敗,SEO 專家檢查移動的頁面是否傳回301 而不是302,以便搜尋引擎傳輸其排名。該工具完全在您的瀏覽器中運行,因此搜尋是即時的,並且不會向伺服器發送任何內容。載入後它離線工作,免費,無需帳戶,使其成為在建立或調試任何 Web 服務時保持開啟的快速選項卡。
如何使用 HTTP 狀態代碼參考?
按代碼或名稱搜尋
在搜尋框中輸入 404 等數字、「未找到」等短語或「重定向」等關鍵字以立即過濾清單。
按類別過濾
將清單縮小到一個類別(1xx、2xx、3xx、4xx 或 5xx),以便僅瀏覽資訊、成功、重定向、客戶端錯誤或伺服器錯誤代碼。
讀一下意思
每行顯示原因短語、程式碼使用時間的清晰描述以及定義它的 RFC。
複製代碼或短語
一鍵複製狀態代碼及其原因短語,然後貼上到文件、測試或 API 回應中。
主要特點
完整的 IANA 註冊表
涵蓋 100 到 511 之間的每個標準代碼,包括按類別分組的 WebDAV 和速率限制代碼。
即時搜尋
按數字、原因短語或描述進行匹配,因此 404、「未找到」和「缺少頁面」都可以找到正確的條目。
類別過濾器
直接跳到 1xx、2xx、3xx、4xx 或 5xx 代碼,以專注於重定向、客戶端錯誤或伺服器錯誤。
規格引用
每個代碼都命名定義它的 RFC,因此您可以確認針對主來源的行為。
Frequently Asked Questions
Related Tools
Basic Auth Generator
Turn a username and password into an HTTP Basic Authentication header, base64 token, curl commands and URL form, and decode existing Basic auth tokens back.
IP Subnet Calculator
Calculate the network address, broadcast, usable host range, subnet mask, and host count for any IPv4 address and CIDR prefix.
User Agent Parser
Paste a User-Agent string and read the browser, rendering engine, operating system, device type and CPU it describes, all in your browser.
JSON Validator
Validate JSON against RFC 8259 and get the exact line, column, and character of the first syntax error, plus duplicate-key detection and structure stats. Client-side, no signup.
Comments
0 comments
No comments yet. Be the first to share your thoughts!