Skip to content
cosmodev ~/tools/http-status-codes

HTTP 状态码

Data & DevOps

可搜索的全量 HTTP 状态码参考,含含义、分类与用法说明。

61/61
  • 100
    ContinueInformational

    The server has received the request headers and the client should proceed to send the request body.

  • 101
    Switching ProtocolsInformational

    The requester has asked the server to switch protocols and the server has agreed to do so.

  • 103
    Early HintsInformational

    Used to return some response headers before the final HTTP message so the browser can start preloading resources.

  • 200
    OKSuccess

    Standard response for a successful HTTP request.

  • 201
    CreatedSuccess

    The request succeeded and a new resource was created.

  • 202
    AcceptedSuccess

    The request has been accepted for processing but is not yet complete.

  • 203
    Non-Authoritative InformationSuccess

    The returned metadata originated from a local or third-party copy rather than the origin server.

  • 204
    No ContentSuccess

    The server processed the request successfully but is not returning any content.

  • 205
    Reset ContentSuccess

    The server asks the client to reset the document view that sent the request.

  • 206
    Partial ContentSuccess

    The server is delivering only part of the resource because the client requested a byte range.

  • 207
    Multi-StatusSuccess

    WebDAV: conveys information about multiple resources in a single XML response.

  • 208
    Already ReportedSuccess

    WebDAV: the members of a DAV binding have already been enumerated in a previous reply.

  • 226
    IM UsedSuccess

    The server fulfilled a GET request using an instance-manipulation applied to the current instance.

  • 300
    Multiple ChoicesRedirection

    The request has more than one possible response; the user agent can choose among them.

  • 301
    Moved PermanentlyRedirection

    This and all future requests should be directed to the given URL.

  • 302
    FoundRedirection

    The resource resides temporarily under a different URL; the method may be changed to GET.

  • 303
    See OtherRedirection

    The response to the request can be found under another URI using a GET request.

  • 304
    Not ModifiedRedirection

    The resource has not been modified since the version specified by the request headers.

  • 305
    Use ProxyRedirection

    The requested resource is available only through a proxy (deprecated).

  • 306
    Switch ProxyRedirection

    No longer used; originally meant subsequent requests should use a specified proxy.

  • 307
    Temporary RedirectRedirection

    The request should be repeated with another URL; the request method must not change.

  • 308
    Permanent RedirectRedirection

    This and all future requests should use another URL; the request method must not change.

  • 400
    Bad RequestClient Error

    The server cannot process the request due to a client error such as malformed syntax.

  • 401
    UnauthorizedClient Error

    Authentication is required and has either failed or not been provided.

  • 402
    Payment RequiredClient Error

    Reserved for future use; sometimes used for paywalled resources.

  • 403
    ForbiddenClient Error

    The server understood the request but refuses to authorize it.

  • 404
    Not FoundClient Error

    The requested resource could not be found on the server.

  • 405
    Method Not AllowedClient Error

    The request method is not supported for the requested resource.

  • 406
    Not AcceptableClient Error

    The requested resource can only generate content not acceptable per the Accept headers.

  • 407
    Proxy Authentication RequiredClient Error

    The client must first authenticate itself with the proxy.

  • 408
    Request TimeoutClient Error

    The server timed out waiting for the client to send the request.

  • 409
    ConflictClient Error

    The request could not be processed because of a conflict with the current state of the resource.

  • 410
    GoneClient Error

    The resource is no longer available and will not be available again.

  • 411
    Length RequiredClient Error

    The request did not specify the length of its content, which is required by the resource.

  • 412
    Precondition FailedClient Error

    The server does not meet one of the preconditions given in the request headers.

  • 413
    Content Too LargeClient Error

    The request payload is larger than the server is willing or able to process.

  • 414
    URI Too LongClient Error

    The URI provided was too long for the server to process.

  • 415
    Unsupported Media TypeClient Error

    The request uses a media type the server does not support for the resource.

  • 416
    Range Not SatisfiableClient Error

    The portion of the resource requested in the Range header cannot be supplied by the server.

  • 417
    Expectation FailedClient Error

    The server cannot meet the requirements of the Expect request header field.

  • 418
    I'm a TeapotClient Error

    RFC 2324 joke status: the server refuses to brew coffee because it is, permanently, a teapot.

  • 421
    Misdirected RequestClient Error

    The request was directed at a server that is not able to produce a response.

  • 422
    Unprocessable ContentClient Error

    The server understands the content type and syntax but cannot process the contained instructions (WebDAV).

  • 423
    LockedClient Error

    WebDAV: the source or destination resource of the method is locked.

  • 424
    Failed DependencyClient Error

    WebDAV: the method could not be performed because the requested action depended on another action that failed.

  • 425
    Too EarlyClient Error

    The server is unwilling to risk processing a request that might be a replay.

  • 428
    Precondition RequiredClient Error

    The origin server requires the request to be conditional.

  • 429
    Too Many RequestsClient Error

    The user has sent too many requests in a given time (rate limiting).

  • 431
    Request Header Fields Too LargeClient Error

    The server is unwilling to process the request because its header fields are too large.

  • 451
    Unavailable For Legal ReasonsClient Error

    The resource is unavailable due to legal demands such as government censorship or a takedown.

  • 500
    Internal Server ErrorServer Error

    A generic error message: the server encountered an unexpected condition.

  • 501
    Not ImplementedServer Error

    The server does not support the functionality required to fulfill the request.

  • 502
    Bad GatewayServer Error

    The server, acting as a gateway, received an invalid response from an upstream server.

  • 503
    Service UnavailableServer Error

    The server is currently unavailable, typically because it is overloaded or down for maintenance.

  • 504
    Gateway TimeoutServer Error

    The server, acting as a gateway, timed out waiting for an upstream response.

  • 505
    HTTP Version Not SupportedServer Error

    The server does not support the HTTP protocol version used in the request.

  • 506
    Variant Also NegotiatesServer Error

    Transparent content negotiation for the request resulted in a circular reference.

  • 507
    Insufficient StorageServer Error

    WebDAV: the server is unable to store the representation needed to complete the request.

  • 508
    Loop DetectedServer Error

    WebDAV: the server detected an infinite loop while processing the request.

  • 510
    Not ExtendedServer Error

    Further extensions to the request are required for the server to fulfill it.

  • 511
    Network Authentication RequiredServer Error

    The client must authenticate to gain network access, as with a captive portal.

功能简介

一个快速、可搜索的标准 HTTP 状态码参考表,覆盖每一个标准代码。按类别(1xx-5xx)筛选,或者按代码、关键词搜索,即可查明某个代码的含义、服务器在什么情况下返回它、客户端应当如何处理。这是开发者在调试、API 设计和故障响应时随手查阅的快速参考。

使用方法

  1. 按代码(例如 404)或关键词(例如 redirect、teapot)进行搜索。
  2. 使用类别选择器(全部 / 1xx / 2xx / 3xx / 4xx / 5xx)按类别缩小范围。
  3. 点击任意代码旁的 Copy,即可按 "code reason" 格式复制。

示例

  • 200 OK - 请求已成功(2xx 成功类)。
  • 301 Moved Permanently - 资源有了新的永久 URL(3xx 重定向类)。
  • 404 Not Found - 服务器找不到匹配的资源(4xx 客户端错误类)。
  • 503 Service Unavailable - 服务器过载或正在维护(5xx 服务器错误类)。

补充说明

  • 类别划分: 1xx 信息提示 · 2xx 成功 · 3xx 重定向 · 4xx 客户端错误 · 5xx 服务器错误。
  • SEO 提示: 对搜索引擎而言,301 与 302 的区别很重要 - 301 会传递链接权重,302 不会。
  • 相关工具: URL Inspector、cURL Command Builder、JWTJWTA compact, URL-safe token that carries claims (like identity or expiry) between two parties, signed to prevent tampering.Learn more Decoder。
源代码14 种语言

100% 客户端运行 · 你的数据永远不会离开浏览器。 觉得好用?分享给同事吧。