HTTP

HTTP 状态码

所有 HTTP 状态码参考手册

🔒 100% client-side — your data never leaves this page
100
ContinueServer received request headers
101
Switching ProtocolsUpgrading protocol as requested
200
OKRequest succeeded
201
CreatedResource created successfully
204
No ContentSuccess but no body returned
206
Partial ContentPartial range request fulfilled
301
Moved PermanentlyURL permanently changed
302
FoundTemporary redirect
304
Not ModifiedCached version is still valid
307
Temporary RedirectSame as 302 but method preserved
308
Permanent RedirectSame as 301 but method preserved
400
Bad RequestInvalid request syntax
401
UnauthorizedAuthentication required
403
ForbiddenAuthenticated but not authorized
404
Not FoundResource does not exist
405
Method Not AllowedHTTP method not supported
408
Request TimeoutServer timed out waiting
409
ConflictRequest conflicts with current state
410
GoneResource permanently deleted
422
Unprocessable EntityValidation failed
429
Too Many RequestsRate limit exceeded
500
Internal Server ErrorGeneric server error
502
Bad GatewayInvalid upstream response
503
Service UnavailableServer temporarily offline
504
Gateway TimeoutUpstream server timed out
505
HTTP Version Not SupportedHTTP version not supported

About this tool

完整可搜索的 HTTP 状态码参考手册。按分类过滤(1xx 信息、2xx 成功、3xx 重定向、4xx 客户端错误、5xx 服务端错误),或按状态码和描述搜索。每个状态码含详细说明和实际使用场景示例。

Frequently Asked Questions

What is the difference between 401 and 403?

401 Unauthorized means authentication is required and has failed or not been provided. 403 Forbidden means the server understood the request but refuses to authorize it — the user is authenticated but lacks permission.

What is the difference between 301 and 302 redirects?

301 is a permanent redirect, telling browsers and search engines to update their records. 302 is temporary, meaning the original URL should be kept. For SEO, 301 passes link equity while 302 does not.

When should I use 422 instead of 400?

Use 400 for malformed requests (invalid JSON syntax). Use 422 for requests that are syntactically valid but semantically wrong — such as failing business logic validation like an invalid email format.