首页HTTP 响应HTTP 状态码常量表
HTTP 状态码常量表
HTTP_STATUS_CODES 常量:100~599 完整映射,含大量非标准码
本页内容
  1. 2xx 成功
  2. 3xx 重定向
  3. 4xx 客户端错误
  4. 5xx 服务端错误
  5. 注意事项

2xx 成功

文案
200OK
201Created
202Accepted
203Non-Authoritative Information
204No Content
205Reset Content
206Partial Content
207Multi-Status

3xx 重定向

文案
300Multiple Choices
301Moved Permanently
302Found
303See Other
304Not Modified
305Use Proxy
306(Unused)
307Temporary Redirect
308Permanent Redirect

4xx 客户端错误

文案
400Bad Request
401Unauthorized
402Payment Required
403Forbidden
404Not Found
405Method Not Allowed
406Not Acceptable
407Proxy Authentication Required
408Request Timeout
409Conflict
410Gone
411Length Required
412Precondition Failed
413Request Entity Too Large
414Request-URI Too Long
415Unsupported Media Type
416Requested Range Not Satisfiable
417Expectation Failed
418I'm a teapot
419Authentication Timeout
420Enhance Your Calm
422Unprocessable Entity
423Locked
424Failed Dependency
425Unordered Collection
426Upgrade Required
428Precondition Required
429Too Many Requests
431Request Header Fields Too Large
444No Response
449Retry With
450Blocked by Windows Parental Controls
451Unavailable For Legal Reasons
494Request Header Too Large
495Cert Error
496No Cert
497HTTP to HTTPS
499Client Closed Request

5xx 服务端错误

文案
500Internal Server Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Gateway Timeout
505HTTP Version Not Supported
506Variant Also Negotiates
507Insufficient Storage
508Loop Detected
509Bandwidth Limit Exceeded
510Not Extended
511Network Authentication Required
598Network read timeout error
599Network connect timeout error

注意事项

常量中 424 出现两次(Failed Dependency 与 Method Failure),PHP 常量数组后者覆盖前者,实际生效为 Method Failure。
KuoqiPHP v1.05 · 离线静态文档 · 界面基于 KuoqiUI · 返回首页