http-statuses.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. declare(strict_types=1);
  3. return [
  4. '0' => '未知错误',
  5. '100' => '继续请求',
  6. '101' => '切换协议',
  7. '102' => '处理中',
  8. '200' => '请求成功',
  9. '201' => '已创建',
  10. '202' => '已接受',
  11. '203' => '非权威信息',
  12. '204' => '无内容',
  13. '205' => '重置内容',
  14. '206' => '部分内容',
  15. '207' => '多状态',
  16. '208' => '已上报',
  17. '226' => 'IM已使用',
  18. '300' => '多种选择',
  19. '301' => '已永久移动',
  20. '302' => '临时移动',
  21. '303' => '见其他',
  22. '304' => '未修改',
  23. '305' => '使用代理',
  24. '307' => '临时重定向',
  25. '308' => '永久重定向',
  26. '400' => '请求错误',
  27. '401' => '未授权',
  28. '402' => '需要付款',
  29. '403' => '禁止',
  30. '404' => '未找到',
  31. '405' => '方法不允许',
  32. '406' => '无法接受',
  33. '407' => '需要代理验证',
  34. '408' => '请求超时',
  35. '409' => '冲突',
  36. '410' => '不可用',
  37. '411' => '长度要求',
  38. '412' => '前提条件未满足',
  39. '413' => '请求实体过大',
  40. '414' => 'URI太长了',
  41. '415' => '不支持的媒体类型',
  42. '416' => '请求范围不符合',
  43. '417' => '期望不满足',
  44. '418' => '我是一个茶壶',
  45. '419' => '会话已过期',
  46. '421' => '错误的请求',
  47. '422' => '不可处理的实体',
  48. '423' => '锁定',
  49. '424' => '失败的依赖',
  50. '425' => '太早了',
  51. '426' => '需要升级',
  52. '428' => '前提要求',
  53. '429' => '请求太多',
  54. '431' => '请求标头字段太大',
  55. '444' => '连接关闭无响应',
  56. '449' => '重试',
  57. '451' => '法律原因不可用',
  58. '499' => '客户端关闭请求',
  59. '500' => '内部服务器错误',
  60. '501' => '未实现',
  61. '502' => '网关错误',
  62. '503' => '服务不可用',
  63. '504' => '网关超时',
  64. '505' => 'HTTP版本不支持',
  65. '506' => '变体协商',
  66. '507' => '存储空间不足',
  67. '508' => '检测到环路',
  68. '509' => '超出带宽限制',
  69. '510' => '未延期',
  70. '511' => '需要网络验证',
  71. '520' => '未知错误',
  72. '521' => 'Web服务器已关闭',
  73. '522' => '连接超时',
  74. '523' => '原点无法到达',
  75. '524' => '发生超时',
  76. '525' => 'SSL握手失败',
  77. '526' => '无效的SSL证书',
  78. '527' => '轨道炮错误',
  79. '598' => '网络读取超时',
  80. '599' => '网络连接超时',
  81. 'unknownError' => '未知错误',
  82. ];