You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1017 B

2 years ago
  1. using EasyBL.WebApi.Common;
  2. namespace EasyBL.WebApi
  3. {
  4. public enum StatusCodeEnum
  5. {
  6. [Text("請求(或處理)成功")]
  7. Success = 200, //請求(或處理)成功
  8. [Text("內部請求錯誤")]
  9. Error = 500, //內部請求錯誤
  10. [Text("未授權標識")]
  11. Unauthorized = 401,//未授權標識
  12. [Text("請求參數不完整或不正確")]
  13. ParameterError = 400,//請求參數不完整或不正確
  14. [Text("請求TOKEN失效")]
  15. TokenInvalid = 403,//請求TOKEN失效
  16. [Text("您的身份認證已經過期,請重新登入")]
  17. TokenVerifyFailed = 404,//您的身份認證已經過期,請重新登入
  18. [Text("HTTP請求類型不合法")]
  19. HttpMehtodError = 405,//HTTP請求類型不合法
  20. [Text("HTTP請求不合法,請求參數可能被篡改")]
  21. HttpRequestError = 406,//HTTP請求不合法
  22. [Text("該URL已經失效")]
  23. URLExpireError = 407,//該URL已經失效
  24. }
  25. }