HTTP Status Codes
HTTP Status Code Reference
31 status codes
1xx - 信息响应
100Continue继续
101Switching Protocols切换协议
102Processing处理中
103Early Hints早期提示
2xx - 成功响应
200OK成功
201Created已创建
202Accepted已接受
204No Content无内容
206Partial Content部分内容
3xx - 重定向
301Moved Permanently永久重定向
302Found临时重定向
303See Other查看其他
304Not Modified未修改
307Temporary Redirect临时重定向
308Permanent Redirect永久重定向
4xx - 客户端错误
400Bad Request错误请求
401Unauthorized未授权
403Forbidden禁止访问
404Not Found未找到
405Method Not Allowed方法不允许
408Request Timeout请求超时
409Conflict冲突
413Payload Too Large请求体过大
415Unsupported Media Type不支持的媒体类型
422Unprocessable Entity无法处理的实体
429Too Many Requests请求过多
5xx - 服务器错误
500Internal Server Error服务器内部错误
501Not Implemented未实现
502Bad Gateway错误网关
503Service Unavailable服务不可用
504Gateway Timeout网关超时
HTTP Status Code Usage Guide
Status Code Categories
- 1xx (Informational) - Request received, continuing processing
- 2xx (Success) - Request successfully received, understood, accepted
- 3xx (Redirect) - Further action needed to complete request
- 4xx (Client Error) - Request contains syntax error or cannot be fulfilled
- 5xx (Server Error) - Server failed to fulfill a valid request
Common Use Cases
- API development and debugging
- Web server configuration
- SEO optimization (301 redirects)
- Frontend-backend integration troubleshooting
- Nginx / Apache error handling