HTTP Status Codes Reference

HTTP status codes are 3-digit server response identifiers, grouped into 5 categories. This table covers all common codes with descriptions.

1xx 信息2xx 成功3xx 重定向4xx 客户端错误5xx 服务器错误
CodeNameChinese NameCategoryDescription
100Continue继续1xx 信息The client should continue with the request body.
101Switching Protocols切换协议1xx 信息Server agrees to switch protocols (e.g., upgrade to WebSocket).
102Processing处理中1xx 信息Server received the request and is still processing it.
200OK成功2xx 成功The request succeeded. Most common status code.
201Created已创建2xx 成功Request succeeded and a new resource was created (common for POST).
202Accepted已接受2xx 成功Request accepted but not yet processed (async task).
204No Content无内容2xx 成功Request succeeded with no content returned (common for DELETE).
206Partial Content部分内容2xx 成功Server returns partial content (Range request).
301Moved Permanently永久重定向3xx 重定向Resource permanently moved to a new URL. SEO link equity transfers.
302Found临时重定向3xx 重定向Resource temporarily moved. Does not transfer SEO link equity.
304Not Modified未修改3xx 重定向Resource not modified, client should use cached version.
307Temporary Redirect临时重定向(保持方法)3xx 重定向Temporary redirect, preserves the original request method.
308Permanent Redirect永久重定向(保持方法)3xx 重定向Permanent redirect, preserves the original request method.
400Bad Request请求错误4xx 客户端错误Malformed request syntax or invalid parameters.
401Unauthorized未授权4xx 客户端错误Authentication required. Common with missing or invalid token.
403Forbidden禁止访问4xx 客户端错误Server refuses the request (insufficient permissions).
404Not Found未找到4xx 客户端错误Requested resource not found. Most common client error.
405Method Not Allowed方法不允许4xx 客户端错误HTTP method not allowed (e.g., POST to a GET-only endpoint).
408Request Timeout请求超时4xx 客户端错误Client did not send request within server timeout.
409Conflict冲突4xx 客户端错误Request conflicts with server state (e.g., duplicate creation).
410Gone已删除4xx 客户端错误Resource permanently removed (more explicit than 404).
413Payload Too Large请求体过大4xx 客户端错误Request body exceeds server limit (e.g., large file upload).
415Unsupported Media Type不支持的媒体类型4xx 客户端错误Request Content-Type not supported by server.
422Unprocessable Entity无法处理的实体4xx 客户端错误Well-formed but semantically erroneous request (validation failure).
429Too Many Requests请求过多4xx 客户端错误Rate limit exceeded (throttling).
500Internal Server Error服务器内部错误5xx 服务器错误Unexpected server error. Most common server error.
501Not Implemented未实现5xx 服务器错误Server does not support the requested feature.
502Bad Gateway网关错误5xx 服务器错误Gateway/proxy received invalid response from upstream.
503Service Unavailable服务不可用5xx 服务器错误Service temporarily unavailable (overloaded or maintenance).
504Gateway Timeout网关超时5xx 服务器错误Gateway/proxy timed out waiting for upstream.
511Network Authentication Required需要网络认证5xx 服务器错误Network authentication required (e.g., captive portal).