服务器已收到请求的初始部分,客户端应继续发送请求
服务器理解并同意切换协议
请求成功
请求成功 and 新品 resource created
Requested resource has moved permanently to 新品 URL
服务器无法理解请求
请求需要身份验证
Server understood the request but refuses to authorize it
Server cannot find the requested resource
服务器内部错误
网关或代理服务器收到无效响应
服务器暂时无法处理请求
Select a 状态 code to view detailed 信息
状态 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.