http-statuses.php 3.3 KB

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