error.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. *
  4. * 400 Invalid syntax. 语法问题
  5. * 401 Access denied. 访问拒绝
  6. * 402 Payment required. 必须完整
  7. * 403 Request forbidden. 请求被禁止
  8. * 404 Object not found. 对象没有找到
  9. * 405 Method is not allowed. 方法不允许
  10. * 406 No response acceptable to client found. 客户端没有响应
  11. * 407 Proxy authentication required. 代理需要验证
  12. * 408 Server timed out waiting for request. 等等请求时服务器断开连接
  13. * 409 User should resubmit with more info. 有冲突用户应该进行检查
  14. * 410 Resource is no longer available. 资源不可用
  15. * 411 Server refused to accept request without a length. 服务器拒绝接受没有长度的请求
  16. * 412 Precondition given in request failed. 放弃请求失败的条件
  17. * 413 Request entity was too large. 请求太大
  18. * 414 Request Uniform Resource Identifier (URI) too long. 请求的URI 太长
  19. * 415 Unsupported media type. 不支持MEDIA类型
  20. * 449 Retry after doing the appropriate action. 在作了适当动作后重试
  21. * 500 Internal server error. 服务器内部错误
  22. * 501 Server does not support the functionality required to fulfill the request. 服务器不支持请求的功能
  23. * 502 Error response received from gateway. 从网关收到错误应答
  24. * 503 Temporarily overloaded. 过载
  25. * 504 Timed out waiting for gateway. 等待网关时请求断开
  26. * 505 HTTP version not supported. 不支持HTTP的版本
  27. */
  28. return array(
  29. -1 => '%s',
  30. 0 => 'Unknow error %d',
  31. //network
  32. 400 => '400 Bad request.',
  33. 401 => '401 Access denied.',
  34. 403 => '403 Request forbidden.',
  35. 404 => '404 Not found.',
  36. 405 => '405 Method is not allowed.',
  37. 406 => '406 No response acceptable to client found.',
  38. 407 => '407 Proxy authentication required.',
  39. 408 => '408 Server timed out waiting for request.',
  40. 409 => '409 User should resubmit with more info.',
  41. 410 => '410 Resource is no longer available. ',
  42. 412 => '412 Precondition given in request failed.',
  43. 413 => '413 Request entity was too large.',
  44. 414 => '414 Request Uniform Resource Identifier (URI) too long.',
  45. 415 => '415 Unsupported media type.',
  46. 449 => '449 Retry after doing the appropriate action.',
  47. 500 => '500 Internal server error ',
  48. 501 => '501 Server does not support the functionality required to fulfill the request',
  49. 502 => '502 Error response received from gateway',
  50. 503 => '503 Temporarily overloaded.',
  51. 504 => '504 Timed out waiting for gateway.',
  52. 505 => '505 HTTP version not supported.',
  53. //system relate
  54. 1000 => 'The file <font color="red">%s</font> format is wrong',
  55. 1001 => 'Error page <font color="red">%s</font> does not exist',
  56. 1002 => 'Security check failure',
  57. 1003 => 'Undefined variable',
  58. 1004 => 'The memcached extension must be loaded before use',
  59. 1005 => 'Connect memcached server [%s:%s] failed',
  60. 1006 => 'The redis extension must be loaded before use',
  61. 1007 => 'Undefined cache policy',
  62. 1008 => 'The %s extension must be loaded before use',
  63. 1009 => 'Folder "%s" does not exist',
  64. //class relate
  65. 1100 => 'Two many argements in %s , this method need %d parameter, %d given',
  66. 1101 => 'Call undefined method <font color="red">%s</font>',
  67. 1102 => 'Class <font color="red">%s</font> does not exist',
  68. 1103 => 'Class name couldn\'t be NULL',
  69. 1104 => 'Class <font color="red">%s</font> didn\'t instance',
  70. 1105 => 'Call undefined method <font color="red">%s::%s</font>" with args "<font color="red">%s</font>"',
  71. 1107 => 'Class %s must be the extends/implements of %s',
  72. 1108 => 'Please write this controller<font color="red">%s</font> controller in your project, and add this method <font color="red">%s</font>',
  73. 1109 => 'Please write this <font color="red">%s</font> class in your project, and add this method <font color="red">%s</font>',
  74. //file and others
  75. 1400 => 'Website configure file <font color="red">%s</font> error',
  76. 1401 => 'Dir %s does not exist',
  77. 1402 => 'No database configure file',
  78. 1403 => 'No database configure',
  79. 1404 => 'Directory <font color="red">%s</font> not included file <font color="red">%s</font>',
  80. 1405 => 'File %s not found',
  81. 1406 => 'Configure file is empty',
  82. //model
  83. 1500 => 'Connect Database fail, host:%s, use user:%s, password:%s, database:%s error : %s',
  84. 1501 => 'Connect Database fail, %s',
  85. 1506 => 'Model\'s method %s does not exist',
  86. 1507 => 'Please call %s method first',
  87. 1508 => 'Table must have some fields',
  88. 1509 => 'Execute Query error with sql : <font color="red">%s</font>, Error description: <font color="red">%s</font>',
  89. 1510 => 'unknow table name',
  90. 1511 => '%s does exist',
  91. 1512 => '%s does not exist',
  92. 1513 => 'private key is not set',
  93. 5001 => '%s undefined',
  94. 5002 => '%s not allowed',
  95. 5003 => '%s is null',
  96. 5004 => '%s is invalid',
  97. 5005 => '%s regular does not exist'
  98. );