StatusCodes.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. declare enum StatusCodes {
  2. CONTINUE = 100,
  3. SWITCHING_PROTOCOLS = 101,
  4. OK = 200,
  5. CREATED = 201,
  6. ACCEPTED = 202,
  7. NON_AUTHORITATIVE_INFORMATION = 203,
  8. NO_CONTENT = 204,
  9. RESET_CONTENT = 205,
  10. PARTIAL_CONTENT = 206,
  11. MULTIPLE_CHOICES = 300,
  12. MOVED_PERMANENTLY = 301,
  13. MOVED_TEMPORARILY = 302,
  14. SEE_OTHER = 303,
  15. NOT_MODIFIED = 304,
  16. USE_PROXY = 305,
  17. TEMPORARY_REDIRECT = 307,
  18. BAD_REQUEST = 400,
  19. UNAUTHORIZED = 401,
  20. PAYMENT_REQUIRED = 402,
  21. FORBIDDEN = 403,
  22. NOT_FOUND = 404,
  23. METHOD_NOT_ALLOWED = 405,
  24. NOT_ACCEPTABLE = 406,
  25. PROXY_AUTHENTICATION_REQUIRED = 407,
  26. REQUEST_TIMEOUT = 408,
  27. CONFLICT = 409,
  28. GONE = 410,
  29. LENGTH_REQUIRED = 411,
  30. PRECONDITION_FAILED = 412,
  31. REQUEST_ENTITY_TOO_LARGE = 413,
  32. REQUEST_URI_TOO_LONG = 414,
  33. UNSUPPORTED_MEDIA_TYPE = 415,
  34. REQUESTED_RANGE_NOT_SATISFIABLE = 416,
  35. EXPECTATION_FAILED = 417,
  36. INTERNAL_SERVER_ERROR = 500,
  37. NOT_IMPLEMENTED = 501,
  38. BAD_GATEWAY = 502,
  39. SERVICE_UNAVAILABLE = 503,
  40. GATEWAY_TIMEOUT = 504,
  41. HTTP_VERSION_NOT_SUPPORTED = 505
  42. }
  43. export { StatusCodes };