error.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. //系统错误
  30. -1 => '%s',
  31. 0 => '未知错误%d',
  32. //网络相关
  33. 400 => '400 语法问题',
  34. 401 => '401 访问拒绝',
  35. 403 => '403 请求被禁止',
  36. 404 => '404 对象没有找到',
  37. 405 => '405 方法不允许',
  38. 406 => '406 客户端没有响应',
  39. 407 => '407 代理需要验证',
  40. 408 => '408 等等请求时服务器断开连接',
  41. 409 => '409 有冲突用户应该进行检查',
  42. 410 => '410 资源不可用',
  43. 412 => '412 放弃请求失败的条件',
  44. 413 => '413 请求太大',
  45. 414 => '414 请求的URI 太长',
  46. 415 => '415 不支持MEDIA类型',
  47. 449 => '449 在作了适当动作后重试',
  48. 500 => '500 服务器内部错误',
  49. 501 => '501 服务器不支持请求的功能',
  50. 502 => '502 从网关收到错误应答',
  51. 503 => '503 过载',
  52. 504 => '504 等待网关时请求断开',
  53. 505 => '505 不支持HTTP的版本',
  54. //系统错误
  55. 1000 => '文件 <font color="red">%s</font>格式不正确',
  56. 1001 => '错误页面<font color="red">%s</font>不存在',
  57. 1002 => '安全校验失败',
  58. 1003 => '参数未定义',
  59. 1004 => 'memcache扩展没有加载',
  60. 1005 => '连接服务器[%s:%s] 失败',
  61. 1006 => 'redis扩展没有加载',
  62. 1007 => '未定义缓存策略',
  63. 1008 => '%s扩展没有加载',
  64. 1009 => '文件夹%s不存在',
  65. //类相关
  66. 1100 => '%s参数太多,此方法只接受<font color="red">%d</font>个参数,传递了<font color="red">%d</font>个。',
  67. 1101 => '方法<font color="red">%s</font>未定义',
  68. 1103 => '未找到类<font color="red">%s</font>',
  69. 1104 => '类名不能为空',
  70. 1105 => '类<font color="red">%s</font>未被实例化',
  71. 1106 => '调用不存在的方法:<font color="red">%s::%s</font> 参数:<font color="red">%s</font>"',
  72. 1107 => '%s必须扩展或继承%s类',
  73. 1108 => '请在你的项目下添加此控制器<font color="red">%s</font>, 并添加此方法<font color="red">%s</font>',
  74. 1109 => '请在你的项目下添加<font color="red">%s</font>类, 并添加此方法<font color="red">%s</font>',
  75. //文件相关
  76. 1400 => '网站配置文件%s错误',
  77. 1401 => '目录%s不存在',
  78. 1402 => '未指定数据库配置文件',
  79. 1403 => '未配置数据库',
  80. 1404 => '在<font color="red">%s</font>目录下未找到文件<font color="red">%s</font>',
  81. 1405 => '文件<font color="red">%s</font>不存在',
  82. 1406 => '配置信息不能为空',
  83. //model相关
  84. 1500 => '连接数据库失败, 数据库服务器 %s, 用户名 %s, 密码 %s, 数据库 %s, 错误信息:%s',
  85. 1501 => '数据库连接失败, %s',
  86. 1506 => '数据库方法%s不存在',
  87. 1507 => '请先调用%s方法',
  88. 1508 => '数据表必须包含字段 %s',
  89. 1509 => '执行SQL:<font color="red">%s</font>出错, 错误描述 <font color="red">%s</font>',
  90. 1510 => '未指定数据表名称',
  91. 1511 => '数据%s已存在',
  92. 1512 => '数据%s不存在',
  93. 1513 => '未设置主键',
  94. 5001 => '%s变量未定义',
  95. 5002 => '%s 操作不允许',
  96. 5003 => '%s不能为空',
  97. 5004 => '%s格式不正确',
  98. 5005 => '%s验证规则不存在',
  99. );