HTTP 状态码

搜索和查询 HTTP 状态码。可按代码、短语、描述或分类筛选。

100
1xx

Continue

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

101
1xx

Switching Protocols

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

102
1xx

Processing

A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.

103
1xx

Early Hints

Used to return some response headers before final HTTP message.

200
2xx

OK

Standard response for successful HTTP requests.

201
2xx

Created

The request has been fulfilled, resulting in the creation of a new resource.

202
2xx

Accepted

The request has been accepted for processing, but the processing has not been completed.

203
2xx

Non-Authoritative Information

The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.

204
2xx

No Content

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

205
2xx

Reset Content

The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.

206
2xx

Partial Content

The server is delivering only part of the resource (byte serving) due to a range header sent by the client.

300
3xx

Multiple Choices

Indicates multiple options for the resource from which the client may choose.

301
3xx

Moved Permanently

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

302
3xx

Found

Tells the client to look at (browse to) another URL. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect.

303
3xx

See Other

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

304
3xx

Not Modified

Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.

307
3xx

Temporary Redirect

In this case, the request should be repeated with another URI; however, future requests should still use the original URI.

308
3xx

Permanent Redirect

The request and all future requests should be repeated using another URI.

400
4xx

Bad Request

The server cannot or will not process the request due to an apparent client error.

401
4xx

Unauthorized

Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.

402
4xx

Payment Required

Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme.

403
4xx

Forbidden

The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.

404
4xx

Not Found

The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.

405
4xx

Method Not Allowed

A request method is not supported for the requested resource.

406
4xx

Not Acceptable

The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.

407
4xx

Proxy Authentication Required

The client must first authenticate itself with the proxy.

408
4xx

Request Timeout

The server timed out waiting for the request.

409
4xx

Conflict

Indicates that the request could not be processed because of conflict in the current state of the resource.

410
4xx

Gone

Indicates that the resource requested is no longer available and will not be available again.

413
4xx

Payload Too Large

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

414
4xx

URI Too Long

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

415
4xx

Unsupported Media Type

The request entity has a media type which the server or resource does not support.

418
4xx

I'm a teapot

The server refuses the attempt to brew coffee with a teapot.

422
4xx

Unprocessable Entity

The request was well-formed but was unable to be followed due to semantic errors.

429
4xx

Too Many Requests

The user has sent too many requests in a given amount of time.

500
5xx

Internal Server Error

A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

501
5xx

Not Implemented

The server either does not recognize the request method, or it lacks the ability to fulfill the request.

502
5xx

Bad Gateway

The server was acting as a gateway or proxy and received an invalid response from the upstream server.

503
5xx

Service Unavailable

The server is currently unavailable (because it is overloaded or down for maintenance).

504
5xx

Gateway Timeout

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

505
5xx

HTTP Version Not Supported

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

Related Tools

Tools you might also need

100% 保护隐私 • 零服务器文件上传

为什么使用 Utiliome 免费的 100% 免费 HTTP 状态码查询与检测工具(无需注册)?

专为严格隐私保护、即时执行和零门槛体验而构建。无需订阅、无付费墙、无需注册账号。

100% 永久免费

绝无付费墙。我们的 HTTP 状态码查询工具完全免费,没有任何使用限制或隐藏费用。

零服务器上传,保护隐私

您的查询完全留在浏览器本地。我们不会存储或跟踪您的 API 请求,确保绝对的隐私安全。

支持离线的极速响应

由于工具完全在客户端运行,您可以获得即时响应,无需等待外部服务器处理。

全面的状态码数据库

从常见的 200 OK 到冷门的 418 I'm a Teapot,涵盖每一个标准 HTTP 响应代码的详细解释。

Utiliome 与传统云端工具对比

对比我们本地优先的 WebAssembly 引擎与传统云端转换工具。

特性 Utiliome (本地浏览器) 传统云端转换器
费用与付费墙 100% 免费,无限次查询 每日查询受限或强制购买高级版
隐私与数据存储 零服务器上传;完全浏览器本地运行 查询记录会被保存至远程服务器用于分析
账号要求 无需注册,无需填写邮箱 使用几次后强制要求注册邮箱
执行速度 极速(客户端本地执行) 较慢(需要与服务器进行网络往返)

只需 3 步轻松使用 100% 免费 HTTP 状态码查询与检测工具(无需注册)

无需安装任何软件。一切均在您的网页浏览器中直接运行。

1

搜索您的状态码

只需在搜索栏中输入 3 位数的 HTTP 状态码(例如 200、404、500),无需离开当前页面。

2

查看官方定义

立即获取该状态码的官方描述、应用场景及其具体含义。

3

高效应用实践

参考提供的最佳实践,在您的 Web 应用程序或 RESTful API 中正确处理该状态码。

理解 HTTP 状态码的终极指南

快速解答: HTTP 状态码是 Web 服务器对浏览器请求做出的三位数数值响应。它们指示特定的 HTTP 请求是否已成功完成,为调试和 API 开发提供关键信息。

每当您与互联网互动时——无论是浏览网页、从 REST API 获取数据还是提交表单——幕后都在进行着复杂的对话。这种对话的通用语言是超文本传输协议(HTTP),而其主要通信方式就是通过 HTTP 状态码。这些三位数字充当了服务器对客户端请求响应的总结,让您瞬间了解请求是完美成功、客户端存在问题,还是服务器自身遇到了严重故障。

从历史上看,HTTP 状态码是在互联网早期建立的,旨在标准化不同系统之间的通信。没有这些代码,软件开发者和网络工程师就无法以一致的方式诊断连接问题或根据不同结果处理应用程序逻辑。如今在构建 Web 应用程序时,使用正确的 HTTP 状态码不仅是一种最佳实践,更是构建稳健、易维护且用户友好的软件的绝对要求。

例如,如果用户尝试访问不存在的页面,返回标准的 404 Not Found 代码可以明确告知浏览器(以及搜索引擎爬虫)该资源已消失。如果 API 端点需要身份验证而客户端发送了不带令牌的请求,返回 401 Unauthorized 代码可以清晰地传达需要登录的信息。正是这些规范使现代 Web 成为可能,让采用不同编程语言构建的异构系统能够无缝协作。

我们 100% 免费的在线 HTTP 状态码检测工具旨在让您即时获取这些定义。您不需要注册账号,我们承诺零服务器上传。该工具直接在您的浏览器中运行,确保您的查询记录完全私密。与那些可能跟踪您的查询或将关键开发信息隐藏在烦人付费墙身后的传统竞争对手不同,我们致力于提供完全无阻碍的体验。我们在不要求您注册的情况下提供每个状态码的详细背景,确保您的工作流程顺畅无阻。

HTTP 状态码分类:从 1xx 到 5xx

快速解答: 状态码根据首位数字分为五大类:1xx(信息性)、2xx(成功)、3xx(重定向)、4xx(客户端错误)和 5xx(服务器错误)。这种分类有助于开发者迅速了解服务器响应的大致性质。

理解 HTTP 状态码的高层分类是快速掌握 Web 请求结果的最快途径。互联网号码分配局(IANA)维护着官方注册表,将所有代码根据开头的数字划分为五个大类。

1xx 信息性响应 (100–199) 这些代码表明服务器已收到请求并正在继续处理。它们在日常网页浏览中相对少见,但对特定协议至关重要。例如,100 Continue 代码告知客户端请求的前半部分已被接收,应继续发送其余部分。建立 WebSocket 连接时经常可以看到 101 Switching Protocols 代码,表明服务器同意更改通信协议。

2xx 成功响应 (200–299) 最理想的响应类型!2xx 代码意味着客户端的请求已被成功接收、理解和接受。无处不在的 200 OK 是成功 HTTP 请求的标准响应。在 REST API 中,您会经常遇到 201 Created(通过 POST 请求成功创建新资源时)和 204 No Content(请求成功但没有数据返回时,常用于 DELETE 操作)。

3xx 重定向消息 (300–399) 这些代码指示客户端需要采取进一步的操作才能完成请求,通常涉及跳转到不同的 URL。当页面永久更改位置时,301 Moved Permanently 对 SEO 至关重要。302 Found 或 307 Temporary Redirect 表示资源临时位于其他位置。304 Not Modified 对性能优化非常有用,它指示浏览器使用其缓存版本的资源,而无需重新下载。

4xx 客户端错误响应 (400–499) 当问题出在客户端请求时,会返回 4xx 代码。这通常意味着请求包含错误语法或无法被满足。400 Bad Request 是通用的客户端错误。401 Unauthorized 和 403 Forbidden 分别处理身份验证和授权失败。著名的 404 Not Found 意味着请求的 URL 在服务器上不存在。现代 API 还广泛使用 429 Too Many Requests 来实施频率限制。

5xx 服务器错误响应 (500–599) 如果发送了有效请求,但服务器因内部问题未能履行,则会生成 5xx 代码。500 Internal Server Error 是未预料到的服务器故障的通用兜底代码。502 Bad Gateway 指示上游服务器存在问题,而 503 Service Unavailable 意味着服务器超载或正在维护。当充当网关的服务器无法从上游服务器及时获取响应时,就会发生 504 Gateway Timeout。

每个开发者都应掌握的常用 HTTP 状态码

快速解答: 虽然有数十种标准代码,但大多数开发者主要使用核心的几类:200 (OK)、201 (Created)、204 (No Content)、400 (Bad Request)、401 (Unauthorized)、403 (Forbidden)、404 (Not Found) 以及 500 (Internal Server Error)。

掌握 HTTP 状态码的核心子集对于任何现代软件开发者都至关重要,尤其是在构建和调用 RESTful API 时。让我们深入探讨这些关键代码的细微差别以及它们如何塑造稳健的应用设计。

2xx 成功系列 虽然 200 OK 是通用成功的标准,但精细的 API 设计要求使用更具体的代码。当客户端提交 POST 请求以创建用户时,返回 201 Created 比 200 OK 能提供丰富得多的信息。它明确确认了创建事件,并通常包含指向新资源的 'Location' 响应头。类似地,当客户端发送 DELETE 请求且操作成功时,返回 204 No Content 是理想的选择,因为响应体中已经没有需要返回的实质性数据了。

区分 4xx 错误:身份验证 vs. 授权 一个常见的混淆来源是 401 Unauthorized 和 403 Forbidden 之间的区别。401 Unauthorized 本质上意味着“未身份验证”。客户端必须提供有效的身份凭证(如 Bearer 令牌)才能继续。相比之下,403 Forbidden 意味着客户端的身份已知,但缺乏访问特定资源的必要权限。例如,普通用户尝试访问管理员控制面板时应当收到 403 Forbidden。

404 与 410 的细微差别 大家都知道 404 Not Found,但如果是故意删除资源且永不恢复呢?在这种情况下,410 Gone 要合适得多。410 明确告知搜索引擎爬虫和客户端该缺失是永久性的,允许它们放心地从缓存和索引中清除该链接。而 404 是模棱两可的——它仅意味着*此时此刻*找不到。

通过正确使用这些代码,开发者可以构建出极易调试和集成的自文档化 API。我们 100% 免费且保护隐私的工具让您能够随时随地快速查阅这些细节。因为我们的平台完全在浏览器中运行,您可以即时获取答案且无需向服务器上传任何数据,让您的开发流程保持流畅与安全。

为什么隐私和浏览器本地工具对开发者至关重要

快速解答: 开发者工具应当尊重您的工作流程,将数据严格保留在您的本机上。使用 100% 免费、零服务器上传的工具,可确保您的查询、API 端点和开发模式完全私密。

在当今的开发环境中,我们使用的工具往往要求我们牺牲隐私来换取便利。许多在线实用工具、格式化工具和查询工具的运作方式是将您的数据发送到远程服务器进行处理。这意味着您的搜索查询、代码片段或 API 端点结构有可能被记录、分析甚至出售。这就是为什么以“零服务器上传”理念构建工具对现代软件工程至关重要的原因。

当您使用我们的 HTTP 状态码检测工具时,一切都在您的本机本地运行。应用程序被传输到您的浏览器,所有逻辑都在客户端执行。这种浏览器本地执行模式带来了几个巨大的好处。首要的就是隐私。因为我们不在后端服务器上处理您的查询,所以我们在物理层面就无法跟踪您正在查询的内容。无论您是在调试敏感的内部应用程序,还是仅仅在探索 API 标准,您的活动都保持绝对私密。

其次,这种架构保证了极快的性能。通过消除与传统服务器端应用相关的网络往返,我们的工具能够做出即时响应。没有延迟,无需等待服务器唤醒,也不会触及 API 频率限制。这种即时反馈循环正是开发者在深耕复杂网络问题调试时所迫切需要的。

最后,我们相信基础开发者工具应当 100% 免费且完全无门槛。您绝不应该仅仅为了查询 409 Conflict 的定义而被强制注册账号、验证邮箱或拿出信用卡。我们的工具绝对不需要注册。您可以无限制地访问完整的状态码数据库,没有任何传统竞争对手使用的阴暗套路。我们致力于提供网络上最好、最私密且完全免费的开发者工具。

100% 免费 HTTP 状态码查询与检测工具(无需注册) 常见问题解答与技术指南

了解使用 Utiliome 免费在线 免费 http 状态码查询 的一切须知。

这个 HTTP 状态码查询工具是完全免费的吗?

是的,我们的工具永久 100% 免费。没有付费墙、隐藏费用或搜索次数限制。您可以根据需要查询任意多次状态码。

我需要注册才能使用检测工具吗?

完全不需要。您可以立即使用该工具,无需注册、无需创建账号,也无需强制填写邮箱。我们坚持为开发者提供无门槛的工具。

我的数据和查询历史是私密的吗?

是的。该工具完全在浏览器本地运行。我们保证零服务器上传,这意味着您的查询永远不会发送到我们的后端服务器,也不会被跟踪或存储。

是否包含所有标准的 HTTP 状态码?

是的,我们全面的数据库包含了所有官方 IANA 注册表中的状态码(涵盖标准的 1xx 至 5xx 系列),以及 Cloudflare 和 NGINX 等流行平台使用的常用非官方代码。

与付费替代方案相比,这个工具表现如何?

与可能限制查询、记录数据或要求繁琐账号的传统竞争对手不同,Utilio 提供无限制、完全私密且 100% 免费的体验,并具备即时客户端响应。