AG
HTTP
Status Codes
HTTP 状态码
指南
关于
联系
한국어
English
日本語
中文
Español
Português
Français
Deutsch
Русский
العربية
Bahasa Indonesia
首页
/
4xx
4xx
客户端错误 (Client Error)
客户端一侧的问题,例如请求语法错误或权限不足。400、401、403、404 是典型代表。
400
Bad Request
常用
The server cannot process the request due to a client error such as malformed syntax.
401
Unauthorized
常用
Authentication is required and has failed or not been provided (i.e. unauthenticated).
402
Payment Required
Reserved for future use; some APIs use it to signal a payment or quota requirement.
403
Forbidden
常用
The server understood the request but refuses to authorize it. Re-authenticating will not help.
404
Not Found
常用
The server cannot find the requested resource. The most well-known status code.
405
Method Not Allowed
常用
The HTTP method is known but not supported for the target resource.
406
Not Acceptable
The server cannot produce a response matching the request’s Accept headers.
407
Proxy Authentication Required
Authentication with a proxy is required before the request can proceed.
408
Request Timeout
The server timed out waiting for the complete request from the client.
409
Conflict
常用
The request conflicts with the current state of the resource.
410
Gone
The resource is permanently gone with no forwarding address.
411
Length Required
The server refuses the request because it lacks a Content-Length header.
412
Precondition Failed
A condition in the request headers evaluated to false on the server.
413
Content Too Large
The request body is larger than the server will process (formerly Payload Too Large).
414
URI Too Long
The request URI is longer than the server will interpret.
415
Unsupported Media Type
The request payload format is not supported by the server.
416
Range Not Satisfiable
The requested Range lies beyond the size of the resource.
417
Expectation Failed
The expectation in the request Expect header could not be met.
418
I'm a teapot
An April Fools joke: a teapot cannot brew coffee. Widely implemented as an easter egg.
421
Misdirected Request
The request reached a server that cannot produce a response for that scheme/authority.
422
Unprocessable Content
常用
The request is well-formed but has semantic errors (e.g. validation failed).
423
Locked
The resource being accessed is locked.
424
Failed Dependency
The request failed because a request it depended on also failed.
425
Too Early
The server is unwilling to risk processing a request that might be replayed.
426
Upgrade Required
The client should switch to a different protocol given in the Upgrade header.
428
Precondition Required
The origin server requires the request to be conditional.
429
Too Many Requests
常用
The client has sent too many requests in a given time (rate limiting).
431
Request Header Fields Too Large
The header fields are too large, individually or collectively.
451
Unavailable For Legal Reasons
The resource is blocked due to legal demands such as censorship. Named after Fahrenheit 451.