StatusCodes.js 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.StatusCodes = void 0;
  4. var StatusCodes;
  5. (function (StatusCodes) {
  6. StatusCodes[StatusCodes["CONTINUE"] = 100] = "CONTINUE";
  7. StatusCodes[StatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
  8. StatusCodes[StatusCodes["OK"] = 200] = "OK";
  9. StatusCodes[StatusCodes["CREATED"] = 201] = "CREATED";
  10. StatusCodes[StatusCodes["ACCEPTED"] = 202] = "ACCEPTED";
  11. StatusCodes[StatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
  12. StatusCodes[StatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
  13. StatusCodes[StatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT";
  14. StatusCodes[StatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
  15. StatusCodes[StatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
  16. StatusCodes[StatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
  17. StatusCodes[StatusCodes["MOVED_TEMPORARILY"] = 302] = "MOVED_TEMPORARILY";
  18. StatusCodes[StatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER";
  19. StatusCodes[StatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
  20. StatusCodes[StatusCodes["USE_PROXY"] = 305] = "USE_PROXY";
  21. StatusCodes[StatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
  22. StatusCodes[StatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST";
  23. StatusCodes[StatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
  24. StatusCodes[StatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
  25. StatusCodes[StatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN";
  26. StatusCodes[StatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
  27. StatusCodes[StatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
  28. StatusCodes[StatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
  29. StatusCodes[StatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
  30. StatusCodes[StatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
  31. StatusCodes[StatusCodes["CONFLICT"] = 409] = "CONFLICT";
  32. StatusCodes[StatusCodes["GONE"] = 410] = "GONE";
  33. StatusCodes[StatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
  34. StatusCodes[StatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
  35. StatusCodes[StatusCodes["REQUEST_ENTITY_TOO_LARGE"] = 413] = "REQUEST_ENTITY_TOO_LARGE";
  36. StatusCodes[StatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG";
  37. StatusCodes[StatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
  38. StatusCodes[StatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
  39. StatusCodes[StatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
  40. StatusCodes[StatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
  41. StatusCodes[StatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
  42. StatusCodes[StatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
  43. StatusCodes[StatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
  44. StatusCodes[StatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
  45. StatusCodes[StatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
  46. })(StatusCodes || (exports.StatusCodes = StatusCodes = {}));
  47. //# sourceMappingURL=StatusCodes.js.map