errorCode.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. return [
  3. /**
  4. * 系统错误信息
  5. */
  6. '100' => 'Continue',
  7. '101' => 'Switching Protocols',
  8. '102' => 'Processing',
  9. '103' => 'Checkpoint',
  10. '122' => 'Reques­t-URI too long',
  11. '200' => 'OK',
  12. '201' => 'Created',
  13. '202' => 'Accepted',
  14. '203' => 'Non-Au­tho­rit­ative Inform­ation',
  15. '204' => 'No Content',
  16. '205' => 'Reset Content',
  17. '206' => 'Partial Content',
  18. '207' => 'Multi-­Status',
  19. '208' => 'Already Reported',
  20. '226' => 'IM Used',
  21. '300' => 'Multiple Choices',
  22. '301' => 'Moved Perman­ently',
  23. '302' => 'Found',
  24. '303' => 'See Other',
  25. '304' => 'Not Modified',
  26. '305' => 'Use Proxy',
  27. '306' => 'Switch Proxy',
  28. '307' => 'Temporary Redirect',
  29. '308' => 'Resume Incomplete',
  30. '400' => 'Bad Request',
  31. '401' => 'Unauth­orized',
  32. '402' => 'Payment Required',
  33. '403' => 'Forbidden',
  34. '404' => 'Not Found',
  35. '405' => 'Method Not Allowed',
  36. '406' => 'Not Acceptable',
  37. '407' => 'Proxy Authen­tic­ation Required',
  38. '408' => 'Request Timeout',
  39. '409' => 'Conflict',
  40. '410' => 'Gone',
  41. '411' => 'Length Required',
  42. '412' => 'Precon­dition Failed',
  43. '413' => 'Request Entity Too Large',
  44. '414' => 'Reques­t-URI Too Long',
  45. '415' => 'Unsupp­orted Media Type',
  46. '416' => 'Requested Range Not Satisf­iable',
  47. '417' => 'Expect­ation Failed',
  48. '418' => 'I am a teapot',
  49. '422' => 'Unproc­essable Entity',
  50. '423' => 'Locked',
  51. '424' => 'Failed Dependency',
  52. '425' => 'Unordered Collection',
  53. '426' => 'Upgrade Required',
  54. '428' => 'Precon­dition Required',
  55. '429' => 'Too Many Requests',
  56. '431' => 'Request Header Fields Too Large',
  57. '444' => 'No Response',
  58. '449' => 'Retry With',
  59. '450' => 'Blocked By Windows Parental Controls',
  60. '451' => 'Unavai­lable For Legal Reasons',
  61. '499' => 'Client Closed Request',
  62. '500' => 'Internal Server Error',
  63. '501' => 'Not Implem­ented',
  64. '502' => 'Bad Gateway',
  65. '503' => 'Service Unavai­lable',
  66. '504' => 'Gateway Timeout',
  67. '505' => 'HTTP Version Not Supported',
  68. '506' => 'Variant Also Negotiates',
  69. '507' => 'Insuff­icient Storage',
  70. '508' => 'Loop Detected',
  71. '509' => 'Bandwidth Limit Exceeded',
  72. '510' => 'Not Extended',
  73. '511' => 'Network Authen­tic­ation Required',
  74. '598' => 'Network read timeout error',
  75. '599' => 'Network connect timeout error',
  76. /**
  77. * 队列模块
  78. */
  79. /* common 1000~1099 */
  80. '1000' => 'Exception',
  81. '1001' => 'rabbitMQ 错误',
  82. '1002' => 'rabbitMQ API 错误',
  83. '1003' => '表单验证失败',
  84. '1004' => '未查询到结果',
  85. '1005' => '该消息并未返回结果',
  86. //queue 1100~1199
  87. '1100' => '队列名称不能为空',
  88. '1101' => '队列名称必须是有效的字符串',
  89. //message 1200~1299
  90. '1201' => '消息主体不能为空',
  91. '1202' => '消息格式错误',
  92. '1203' => '消息id不能为空',
  93. '1204' => '消息id必须是有效的字符串',
  94. '1205' => '获取数量必须是整数',
  95. '1206' => '获取数量太小,必须大于0',
  96. '1207' => '获取数量太大,必须小于1000 [或联系开发解除限制]',
  97. '1208' => '未找到该队列对应的消费回调',
  98. '1209' => 'requeue只能是布尔值',
  99. '1210' => 'encoding格式错误',
  100. //consume 1300~1399
  101. '1300' => '队列中没有消息',
  102. '1301' => '队列中没有可删除的消息',
  103. '1302' => '非法的消费方式',
  104. '1303' => '未找到该队列的消费回调',
  105. '1304' => '消费回调错误',
  106. //ack 1400~1499
  107. //subscribe 1500~1599
  108. '1500' => '订阅者名称不能为空',
  109. '1501' => '主题名称不能为空',
  110. '1502' => '接收者不能为空',
  111. /**
  112. * 其它模块
  113. */
  114. '2001' => '身份验证失败',
  115. '2002' => '获取token失败',
  116. ];