HTTP 状态码
常用码速查与搜索。
| 码 | 名称 | 说明 |
|---|---|---|
| 100 | Continue | 客户端应继续请求。 |
| 101 | Switching Protocols | 协议切换(如 WebSocket)。 |
| 102 | Processing | 处理中。 |
| 200 | OK | 成功。 |
| 201 | Created | 已创建资源。 |
| 202 | Accepted | 已接受,异步处理。 |
| 204 | No Content | 成功但无响应体。 |
| 206 | Partial Content | 范围请求部分内容。 |
| 301 | Moved Permanently | 永久重定向。 |
| 302 | Found | 临时重定向(历史行为)。 |
| 303 | See Other | 用 GET 访问 Location。 |
| 304 | Not Modified | 缓存仍有效。 |
| 307 | Temporary Redirect | 临时重定向,方法不变。 |
| 308 | Permanent Redirect | 永久重定向,方法不变。 |
| 400 | Bad Request | 请求语法错误。 |
| 401 | Unauthorized | 需认证。 |
| 403 | Forbidden | 无权限。 |
| 404 | Not Found | 资源不存在。 |
| 405 | Method Not Allowed | 方法不允许。 |
| 408 | Request Timeout | 请求超时。 |
| 409 | Conflict | 资源冲突。 |
| 410 | Gone | 资源已永久删除。 |
| 413 | Payload Too Large | 请求体过大。 |
| 415 | Unsupported Media Type | 不支持的媒体类型。 |
| 422 | Unprocessable Entity | 语义错误(如校验失败)。 |
| 429 | Too Many Requests | 请求过频。 |
| 500 | Internal Server Error | 服务器内部错误。 |
| 501 | Not Implemented | 未实现。 |
| 502 | Bad Gateway | 网关/上游无效响应。 |
| 503 | Service Unavailable | 服务不可用。 |
| 504 | Gateway Timeout | 网关超时。 |