ErrorCode.php 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Generated\Exceptions;
  3. class ErrorCode
  4. {
  5. public const SERVER_INTERNAL_ERROR = -1;
  6. public const INVALID_PARAMETER = -2;
  7. public const API_DEPRECATED = -10;
  8. public const API_NOT_FOUND = -11;
  9. public const MAINTAIN_MODE = -20;
  10. public const AUTH_FAILED = -100;
  11. public const CUSTOM_ERROR_MESSAGE = -10000;
  12. public const UNAUTHORIZED = 401;
  13. public const FORBIDDEN = 403;
  14. public const NOT_FOUND = 404;
  15. public const METHOD_NOT_ALLOWED = 405;
  16. public const CONFLICT = 409;
  17. public const GONE = 410;
  18. public const UNPROCESSABLE_ENTITY = 422;
  19. public const TOO_MANY_REQUESTS = 429;
  20. public const DAILY_FEED_LIMIT = 202;
  21. public const AUTH_EXPIRED = 301;
  22. public const SYSTEM_ERROR = 505;
  23. }