ResultCode.cs 885 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.ComponentModel;
  2. namespace Infrastructure
  3. {
  4. public enum ResultCode
  5. {
  6. [Description("success")]
  7. SUCCESS = 200,
  8. [Description("参数错误")]
  9. PARAM_ERROR = 101,
  10. [Description("验证码错误")]
  11. CAPTCHA_ERROR = 103,
  12. [Description("登录错误")]
  13. LOGIN_ERROR = 105,
  14. [Description("操作失败")]
  15. FAIL = 1,
  16. [Description("服务端出错啦")]
  17. GLOBAL_ERROR = 500,
  18. [Description("自定义异常")]
  19. CUSTOM_ERROR = 110,
  20. [Description("非法请求")]
  21. INVALID_REQUEST = 116,
  22. [Description("授权失败")]
  23. OAUTH_FAIL = 201,
  24. [Description("未授权")]
  25. DENY = 401,
  26. [Description("授权访问失败")]
  27. FORBIDDEN = 403,
  28. [Description("Bad Request")]
  29. BAD_REQUEST = 400
  30. }
  31. }