http-statuses.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. return [
  3. '0' => 'Unknown Error',
  4. '100' => 'Continue',
  5. '101' => 'Switching Protocols',
  6. '102' => 'Processing',
  7. '200' => 'OK',
  8. '201' => 'Created',
  9. '202' => 'Accepted',
  10. '203' => 'Non-Authoritative Information',
  11. '204' => 'No Content',
  12. '205' => 'Reset Content',
  13. '206' => 'Partial Content',
  14. '207' => 'Multi-Status',
  15. '208' => 'Already Reported',
  16. '226' => 'IM Used',
  17. '300' => 'Multiple Choices',
  18. '301' => 'Moved Permanently',
  19. '302' => 'Found',
  20. '303' => 'See Other',
  21. '304' => 'Not Modified',
  22. '305' => 'Use Proxy',
  23. '307' => 'Temporary Redirect',
  24. '308' => 'Permanent Redirect',
  25. '400' => 'Bad Request',
  26. '401' => 'Unauthorized',
  27. '402' => 'Payment Required',
  28. '403' => 'Forbidden',
  29. '404' => 'Page Not Found',
  30. '405' => 'Method Not Allowed',
  31. '406' => 'Not Acceptable',
  32. '407' => 'Proxy Authentication Required',
  33. '408' => 'Request Timeout',
  34. '409' => 'Conflict',
  35. '410' => 'Gone',
  36. '411' => 'Length Required',
  37. '412' => 'Precondition Failed',
  38. '413' => 'Payload Too Large',
  39. '414' => 'URI Too Long',
  40. '415' => 'Unsupported Media Type',
  41. '416' => 'Range Not Satisfiable',
  42. '417' => 'Expectation Failed',
  43. '418' => 'I\'m a teapot',
  44. '419' => 'Session Has Expired',
  45. '421' => 'Misdirected Request',
  46. '422' => 'Unprocessable Entity',
  47. '423' => 'Locked',
  48. '424' => 'Failed Dependency',
  49. '426' => 'Upgrade Required',
  50. '428' => 'Precondition Required',
  51. '429' => 'Too Many Requests',
  52. '431' => 'Request Header Fields Too Large',
  53. '449' => 'Retry With',
  54. '451' => 'Unavailable For Legal Reasons',
  55. '500' => 'Internal Server Error',
  56. '501' => 'Not Implemented',
  57. '502' => 'Bad Gateway',
  58. '503' => 'Maintenance Mode',
  59. '504' => 'Gateway Timeout',
  60. '505' => 'HTTP Version Not Supported',
  61. '506' => 'Variant Also Negotiates',
  62. '507' => 'Insufficient Storage',
  63. '508' => 'Loop Detected',
  64. '509' => 'Bandwidth Limit Exceeded',
  65. '510' => 'Not Extended',
  66. '511' => 'Network Authentication Required',
  67. '520' => 'Unknown Error',
  68. '521' => 'Web Server is Down',
  69. '522' => 'Connection Timed Out',
  70. '523' => 'Origin Is Unreachable',
  71. '524' => 'A Timeout Occurred',
  72. '525' => 'SSL Handshake Failed',
  73. '526' => 'Invalid SSL Certificate',
  74. 'unknownError' => 'Unknown Error',
  75. ];