HTTP 状态码

查阅最常用的 HTTP 响应码及简短说明,可用于调试请求、撰写 API 文档和检查服务器响应。

Use the jump links to move between response classes and keep a quick lookup nearby while working with APIs.

HTTP response code table

Code Name Meaning

1xx Informational

Informational responses indicate that the request was received and processing can continue.

2xx Success

Success responses indicate the request was received, understood and accepted.

3xx Redirection

Redirection responses tell the client that additional action is needed to complete the request.

4xx Client Errors

Client error responses indicate a problem with the request itself, authentication or permissions.

5xx Server Errors

Server error responses indicate the server failed while trying to handle an apparently valid request.

示例

200 OK
404 Not Found
503 Service Unavailable

常见问题

什么是 HTTP 404?

HTTP 404 表示在指定的 URL 上找不到请求的资源。

301 与 302 有什么区别?

301 重定向表示永久迁移,而 302 通常表示临时迁移。

503 代表什么?

HTTP 503 表示服务暂时不可用,通常是由于维护或过载造成的。