Skip to main content
返回上级

HTTP 状态 Code Lookup

Look up HTTP 状态 code meanings, 常见原因, and 解

搜索 状态 Codes
状态 Code List
100信息性
Continue

服务器已收到请求的初始部分,客户端应继续发送请求

101信息性
Switching Protocols

服务器理解并同意切换协议

200成功
OK

请求成功

201成功
Created

请求成功 and 新品 resource created

301重定向
Moved Permanently

Requested resource has moved permanently to 新品 URL

400客户端错误
Bad Request

服务器无法理解请求

401客户端错误
Unauthorized

请求需要身份验证

403客户端错误
Forbidden

Server understood the request but refuses to authorize it

404客户端错误
Not Found

Server cannot find the requested resource

500服务器错误
Internal Server Error

服务器内部错误

502服务器错误
Bad Gateway

网关或代理服务器收到无效响应

503服务器错误
Service Unavailable

服务器暂时无法处理请求

状态 Code 详情

Select a 状态 code to view detailed 信息

HTTP 状态 Code Knowledge

状态 Code 分类

HTTP 状态 codes are divided into 5 major 分类, with the first digit indicating the 分类: 1xx (信息性), 2xx (成功), 3xx (重定向), 4xx (客户端错误), 5xx (服务器错误). Each 状态 code has specific meaning and purpose.

最佳实践

Always return appropriate 状态 codes in API responses. Use 2xx for 成功, 4xx for client errors, and 5xx for server errors. Include helpful error messages in response body for 4xx and 5xx codes.

Debugging 提示

Use browser DevTools Network tab to inspect 状态 codes and response headers. Check server logs for 5xx errors. Verify API documentation for correct 状态 code usage. Test error scenarios in development environment before production.