@tsed/exceptions 7.83.3 → 8.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/lib/esm/clientErrors/BadMapping.js.map +1 -1
  2. package/lib/esm/clientErrors/ImATeapot.js.map +1 -1
  3. package/lib/esm/core/Exception.js.map +1 -1
  4. package/lib/esm/redirections/MovedTemporarily.js.map +1 -1
  5. package/lib/esm/serverErrors/ProxyError.js.map +1 -1
  6. package/package.json +17 -15
  7. package/lib/cjs/clientErrors/BadMapping.js +0 -13
  8. package/lib/cjs/clientErrors/BadMapping.js.map +0 -1
  9. package/lib/cjs/clientErrors/BadRequest.js +0 -12
  10. package/lib/cjs/clientErrors/BadRequest.js.map +0 -1
  11. package/lib/cjs/clientErrors/Conflict.js +0 -12
  12. package/lib/cjs/clientErrors/Conflict.js.map +0 -1
  13. package/lib/cjs/clientErrors/ExpectationFailed.js +0 -12
  14. package/lib/cjs/clientErrors/ExpectationFailed.js.map +0 -1
  15. package/lib/cjs/clientErrors/Forbidden.js +0 -12
  16. package/lib/cjs/clientErrors/Forbidden.js.map +0 -1
  17. package/lib/cjs/clientErrors/Gone.js +0 -12
  18. package/lib/cjs/clientErrors/Gone.js.map +0 -1
  19. package/lib/cjs/clientErrors/ImATeapot.js +0 -13
  20. package/lib/cjs/clientErrors/ImATeapot.js.map +0 -1
  21. package/lib/cjs/clientErrors/LengthRequired.js +0 -12
  22. package/lib/cjs/clientErrors/LengthRequired.js.map +0 -1
  23. package/lib/cjs/clientErrors/MethodNotAllowed.js +0 -12
  24. package/lib/cjs/clientErrors/MethodNotAllowed.js.map +0 -1
  25. package/lib/cjs/clientErrors/MisdirectedRequest.js +0 -12
  26. package/lib/cjs/clientErrors/MisdirectedRequest.js.map +0 -1
  27. package/lib/cjs/clientErrors/NotAcceptable.js +0 -12
  28. package/lib/cjs/clientErrors/NotAcceptable.js.map +0 -1
  29. package/lib/cjs/clientErrors/NotFound.js +0 -12
  30. package/lib/cjs/clientErrors/NotFound.js.map +0 -1
  31. package/lib/cjs/clientErrors/PaymentRequired.js +0 -12
  32. package/lib/cjs/clientErrors/PaymentRequired.js.map +0 -1
  33. package/lib/cjs/clientErrors/PreconditionFailed.js +0 -12
  34. package/lib/cjs/clientErrors/PreconditionFailed.js.map +0 -1
  35. package/lib/cjs/clientErrors/PreconditionRequired.js +0 -12
  36. package/lib/cjs/clientErrors/PreconditionRequired.js.map +0 -1
  37. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +0 -12
  38. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +0 -1
  39. package/lib/cjs/clientErrors/RequestEntityTooLarge.js +0 -12
  40. package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +0 -1
  41. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +0 -12
  42. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +0 -1
  43. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +0 -12
  44. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +0 -1
  45. package/lib/cjs/clientErrors/RequestTimeout.js +0 -12
  46. package/lib/cjs/clientErrors/RequestTimeout.js.map +0 -1
  47. package/lib/cjs/clientErrors/RequestURITooLong.js +0 -12
  48. package/lib/cjs/clientErrors/RequestURITooLong.js.map +0 -1
  49. package/lib/cjs/clientErrors/TooManyRequests.js +0 -12
  50. package/lib/cjs/clientErrors/TooManyRequests.js.map +0 -1
  51. package/lib/cjs/clientErrors/Unauthorized.js +0 -12
  52. package/lib/cjs/clientErrors/Unauthorized.js.map +0 -1
  53. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +0 -12
  54. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +0 -1
  55. package/lib/cjs/clientErrors/UnprocessableEntity.js +0 -12
  56. package/lib/cjs/clientErrors/UnprocessableEntity.js.map +0 -1
  57. package/lib/cjs/clientErrors/UnsupportedMediaType.js +0 -12
  58. package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +0 -1
  59. package/lib/cjs/clientErrors/UpgradeRequired.js +0 -12
  60. package/lib/cjs/clientErrors/UpgradeRequired.js.map +0 -1
  61. package/lib/cjs/core/ClientException.js +0 -12
  62. package/lib/cjs/core/ClientException.js.map +0 -1
  63. package/lib/cjs/core/Exception.js +0 -82
  64. package/lib/cjs/core/Exception.js.map +0 -1
  65. package/lib/cjs/core/RedirectException.js +0 -12
  66. package/lib/cjs/core/RedirectException.js.map +0 -1
  67. package/lib/cjs/core/ServerException.js +0 -12
  68. package/lib/cjs/core/ServerException.js.map +0 -1
  69. package/lib/cjs/core/StatusFamily.js +0 -10
  70. package/lib/cjs/core/StatusFamily.js.map +0 -1
  71. package/lib/cjs/index.js +0 -57
  72. package/lib/cjs/index.js.map +0 -1
  73. package/lib/cjs/package.json +0 -3
  74. package/lib/cjs/redirections/MovedPermanently.js +0 -12
  75. package/lib/cjs/redirections/MovedPermanently.js.map +0 -1
  76. package/lib/cjs/redirections/MovedTemporarily.js +0 -13
  77. package/lib/cjs/redirections/MovedTemporarily.js.map +0 -1
  78. package/lib/cjs/redirections/MultipleChoices.js +0 -12
  79. package/lib/cjs/redirections/MultipleChoices.js.map +0 -1
  80. package/lib/cjs/redirections/NotModified.js +0 -12
  81. package/lib/cjs/redirections/NotModified.js.map +0 -1
  82. package/lib/cjs/redirections/PermanentRedirect.js +0 -12
  83. package/lib/cjs/redirections/PermanentRedirect.js.map +0 -1
  84. package/lib/cjs/redirections/SeeOther.js +0 -12
  85. package/lib/cjs/redirections/SeeOther.js.map +0 -1
  86. package/lib/cjs/redirections/TemporaryRedirect.js +0 -12
  87. package/lib/cjs/redirections/TemporaryRedirect.js.map +0 -1
  88. package/lib/cjs/redirections/UseProxy.js +0 -12
  89. package/lib/cjs/redirections/UseProxy.js.map +0 -1
  90. package/lib/cjs/serverErrors/BadGateway.js +0 -12
  91. package/lib/cjs/serverErrors/BadGateway.js.map +0 -1
  92. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +0 -12
  93. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +0 -1
  94. package/lib/cjs/serverErrors/GatewayTimeout.js +0 -12
  95. package/lib/cjs/serverErrors/GatewayTimeout.js.map +0 -1
  96. package/lib/cjs/serverErrors/InternalServerError.js +0 -12
  97. package/lib/cjs/serverErrors/InternalServerError.js.map +0 -1
  98. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +0 -12
  99. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +0 -1
  100. package/lib/cjs/serverErrors/NotExtended.js +0 -12
  101. package/lib/cjs/serverErrors/NotExtended.js.map +0 -1
  102. package/lib/cjs/serverErrors/NotImplemented.js +0 -12
  103. package/lib/cjs/serverErrors/NotImplemented.js.map +0 -1
  104. package/lib/cjs/serverErrors/ProxyError.js +0 -13
  105. package/lib/cjs/serverErrors/ProxyError.js.map +0 -1
  106. package/lib/cjs/serverErrors/ServiceUnavailable.js +0 -12
  107. package/lib/cjs/serverErrors/ServiceUnavailable.js.map +0 -1
  108. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +0 -12
  109. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +0 -1
  110. package/lib/esm/package.json +0 -3
  111. package/lib/types-esm/clientErrors/BadMapping.d.ts +0 -6
  112. package/lib/types-esm/clientErrors/BadRequest.d.ts +0 -5
  113. package/lib/types-esm/clientErrors/Conflict.d.ts +0 -5
  114. package/lib/types-esm/clientErrors/ExpectationFailed.d.ts +0 -5
  115. package/lib/types-esm/clientErrors/Forbidden.d.ts +0 -5
  116. package/lib/types-esm/clientErrors/Gone.d.ts +0 -5
  117. package/lib/types-esm/clientErrors/ImATeapot.d.ts +0 -6
  118. package/lib/types-esm/clientErrors/LengthRequired.d.ts +0 -5
  119. package/lib/types-esm/clientErrors/MethodNotAllowed.d.ts +0 -5
  120. package/lib/types-esm/clientErrors/MisdirectedRequest.d.ts +0 -5
  121. package/lib/types-esm/clientErrors/NotAcceptable.d.ts +0 -5
  122. package/lib/types-esm/clientErrors/NotFound.d.ts +0 -5
  123. package/lib/types-esm/clientErrors/PaymentRequired.d.ts +0 -5
  124. package/lib/types-esm/clientErrors/PreconditionFailed.d.ts +0 -5
  125. package/lib/types-esm/clientErrors/PreconditionRequired.d.ts +0 -5
  126. package/lib/types-esm/clientErrors/ProxyAuthentificationRequired.d.ts +0 -5
  127. package/lib/types-esm/clientErrors/RequestEntityTooLarge.d.ts +0 -5
  128. package/lib/types-esm/clientErrors/RequestHeaderFieldsTooLarge.d.ts +0 -5
  129. package/lib/types-esm/clientErrors/RequestRangeUnsatisfiable.d.ts +0 -5
  130. package/lib/types-esm/clientErrors/RequestTimeout.d.ts +0 -5
  131. package/lib/types-esm/clientErrors/RequestURITooLong.d.ts +0 -5
  132. package/lib/types-esm/clientErrors/TooManyRequests.d.ts +0 -5
  133. package/lib/types-esm/clientErrors/Unauthorized.d.ts +0 -5
  134. package/lib/types-esm/clientErrors/UnavailableForLegalReasons.d.ts +0 -5
  135. package/lib/types-esm/clientErrors/UnprocessableEntity.d.ts +0 -5
  136. package/lib/types-esm/clientErrors/UnsupportedMediaType.d.ts +0 -5
  137. package/lib/types-esm/clientErrors/UpgradeRequired.d.ts +0 -5
  138. package/lib/types-esm/core/ClientException.d.ts +0 -4
  139. package/lib/types-esm/core/Exception.d.ts +0 -48
  140. package/lib/types-esm/core/RedirectException.d.ts +0 -4
  141. package/lib/types-esm/core/ServerException.d.ts +0 -4
  142. package/lib/types-esm/core/StatusFamily.d.ts +0 -5
  143. package/lib/types-esm/index.d.ts +0 -53
  144. package/lib/types-esm/redirections/MovedPermanently.d.ts +0 -5
  145. package/lib/types-esm/redirections/MovedTemporarily.d.ts +0 -6
  146. package/lib/types-esm/redirections/MultipleChoices.d.ts +0 -5
  147. package/lib/types-esm/redirections/NotModified.d.ts +0 -5
  148. package/lib/types-esm/redirections/PermanentRedirect.d.ts +0 -5
  149. package/lib/types-esm/redirections/SeeOther.d.ts +0 -5
  150. package/lib/types-esm/redirections/TemporaryRedirect.d.ts +0 -5
  151. package/lib/types-esm/redirections/UseProxy.d.ts +0 -5
  152. package/lib/types-esm/serverErrors/BadGateway.d.ts +0 -5
  153. package/lib/types-esm/serverErrors/BandwidthLimitExceeded.d.ts +0 -5
  154. package/lib/types-esm/serverErrors/GatewayTimeout.d.ts +0 -5
  155. package/lib/types-esm/serverErrors/InternalServerError.d.ts +0 -5
  156. package/lib/types-esm/serverErrors/NetworkAuthenticationRequired.d.ts +0 -5
  157. package/lib/types-esm/serverErrors/NotExtended.d.ts +0 -5
  158. package/lib/types-esm/serverErrors/NotImplemented.d.ts +0 -5
  159. package/lib/types-esm/serverErrors/ProxyError.d.ts +0 -6
  160. package/lib/types-esm/serverErrors/ServiceUnavailable.d.ts +0 -5
  161. package/lib/types-esm/serverErrors/VariantAlsoNegotiates.d.ts +0 -5
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HTTPException = exports.Exception = void 0;
4
- const tslib_1 = require("tslib");
5
- const core_1 = require("@tsed/core");
6
- const change_case_1 = require("change-case");
7
- const statuses_1 = tslib_1.__importDefault(require("statuses"));
8
- class Exception extends Error {
9
- static validate(status, family) {
10
- if (status < 100 || status >= 600) {
11
- throw new Error("Status must be between 100 and 599");
12
- }
13
- if (status.toString()[0] !== family.charAt(0)) {
14
- throw new Error(`Status ${status} does not belong to the family ${family}`);
15
- }
16
- return status;
17
- }
18
- constructor(status = 500, message = "", origin) {
19
- super(message);
20
- /**
21
- * Exception base name
22
- * @type {string}
23
- */
24
- this.name = "HTTP_EXCEPTION";
25
- /**
26
- * Exception type
27
- * @type {string}
28
- */
29
- this.type = "HTTP_EXCEPTION";
30
- /**
31
- * Headers must be sent to the response
32
- */
33
- this.headers = {};
34
- this.status = status;
35
- this.message = message;
36
- this.name = this.#getStatusConstant();
37
- this.setOrigin(origin);
38
- Error.captureStackTrace(this);
39
- }
40
- setHeaders(headers) {
41
- this.headers = {
42
- ...this.headers,
43
- ...headers
44
- };
45
- return this;
46
- }
47
- setHeader(key, value) {
48
- this.headers[key] = value;
49
- return this;
50
- }
51
- setOrigin(origin) {
52
- if (origin) {
53
- if (origin instanceof Error) {
54
- this.origin = origin;
55
- this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
56
- }
57
- else if (typeof origin === "string") {
58
- this.origin = new Error(origin);
59
- this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
60
- }
61
- else {
62
- this.body = origin;
63
- }
64
- }
65
- }
66
- toString() {
67
- return `${this.name}(${this.status}): ${this.message} `.trim();
68
- }
69
- #getStatusConstant() {
70
- try {
71
- return this.status === 200 ? "SUCCESS" : (0, change_case_1.constantCase)(String((0, statuses_1.default)(this.status)));
72
- }
73
- catch (er) {
74
- return (0, change_case_1.constantCase)((0, core_1.nameOf)((0, core_1.classOf)(this)));
75
- }
76
- }
77
- }
78
- exports.Exception = Exception;
79
- class HTTPException extends Exception {
80
- }
81
- exports.HTTPException = HTTPException;
82
- //# sourceMappingURL=Exception.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedirectException = void 0;
4
- const Exception_js_1 = require("./Exception.js");
5
- const StatusFamily_js_1 = require("./StatusFamily.js");
6
- class RedirectException extends Exception_js_1.Exception {
7
- constructor(status, message, origin) {
8
- super(Exception_js_1.Exception.validate(status, StatusFamily_js_1.StatusFamily["3xx"]), message, origin);
9
- }
10
- }
11
- exports.RedirectException = RedirectException;
12
- //# sourceMappingURL=RedirectException.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RedirectException.js","sourceRoot":"","sources":["../../../src/core/RedirectException.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,uDAA+C;AAE/C,MAAa,iBAAkB,SAAQ,wBAAS;IAC9C,YAAY,MAAc,EAAE,OAAe,EAAE,MAA6B;QACxE,KAAK,CAAC,wBAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,8BAAY,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;CACF;AAJD,8CAIC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServerException = void 0;
4
- const Exception_js_1 = require("./Exception.js");
5
- const StatusFamily_js_1 = require("./StatusFamily.js");
6
- class ServerException extends Exception_js_1.Exception {
7
- constructor(status, message, origin) {
8
- super(Exception_js_1.Exception.validate(status, StatusFamily_js_1.StatusFamily["5xx"]), message, origin);
9
- }
10
- }
11
- exports.ServerException = ServerException;
12
- //# sourceMappingURL=ServerException.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerException.js","sourceRoot":"","sources":["../../../src/core/ServerException.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,uDAA+C;AAE/C,MAAa,eAAgB,SAAQ,wBAAS;IAC5C,YAAY,MAAc,EAAE,OAAe,EAAE,MAA6B;QACxE,KAAK,CAAC,wBAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,8BAAY,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;CACF;AAJD,0CAIC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusFamily = void 0;
4
- var StatusFamily;
5
- (function (StatusFamily) {
6
- StatusFamily["3xx"] = "3xx";
7
- StatusFamily["4xx"] = "4xx";
8
- StatusFamily["5xx"] = "5xx";
9
- })(StatusFamily = exports.StatusFamily || (exports.StatusFamily = {}));
10
- //# sourceMappingURL=StatusFamily.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusFamily.js","sourceRoot":"","sources":["../../../src/core/StatusFamily.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
package/lib/cjs/index.js DELETED
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * @file Automatically generated by @tsed/barrels.
6
- */
7
- tslib_1.__exportStar(require("./clientErrors/BadMapping.js"), exports);
8
- tslib_1.__exportStar(require("./clientErrors/BadRequest.js"), exports);
9
- tslib_1.__exportStar(require("./clientErrors/Conflict.js"), exports);
10
- tslib_1.__exportStar(require("./clientErrors/ExpectationFailed.js"), exports);
11
- tslib_1.__exportStar(require("./clientErrors/Forbidden.js"), exports);
12
- tslib_1.__exportStar(require("./clientErrors/Gone.js"), exports);
13
- tslib_1.__exportStar(require("./clientErrors/ImATeapot.js"), exports);
14
- tslib_1.__exportStar(require("./clientErrors/LengthRequired.js"), exports);
15
- tslib_1.__exportStar(require("./clientErrors/MethodNotAllowed.js"), exports);
16
- tslib_1.__exportStar(require("./clientErrors/MisdirectedRequest.js"), exports);
17
- tslib_1.__exportStar(require("./clientErrors/NotAcceptable.js"), exports);
18
- tslib_1.__exportStar(require("./clientErrors/NotFound.js"), exports);
19
- tslib_1.__exportStar(require("./clientErrors/PaymentRequired.js"), exports);
20
- tslib_1.__exportStar(require("./clientErrors/PreconditionFailed.js"), exports);
21
- tslib_1.__exportStar(require("./clientErrors/PreconditionRequired.js"), exports);
22
- tslib_1.__exportStar(require("./clientErrors/ProxyAuthentificationRequired.js"), exports);
23
- tslib_1.__exportStar(require("./clientErrors/RequestEntityTooLarge.js"), exports);
24
- tslib_1.__exportStar(require("./clientErrors/RequestHeaderFieldsTooLarge.js"), exports);
25
- tslib_1.__exportStar(require("./clientErrors/RequestRangeUnsatisfiable.js"), exports);
26
- tslib_1.__exportStar(require("./clientErrors/RequestTimeout.js"), exports);
27
- tslib_1.__exportStar(require("./clientErrors/RequestURITooLong.js"), exports);
28
- tslib_1.__exportStar(require("./clientErrors/TooManyRequests.js"), exports);
29
- tslib_1.__exportStar(require("./clientErrors/Unauthorized.js"), exports);
30
- tslib_1.__exportStar(require("./clientErrors/UnavailableForLegalReasons.js"), exports);
31
- tslib_1.__exportStar(require("./clientErrors/UnprocessableEntity.js"), exports);
32
- tslib_1.__exportStar(require("./clientErrors/UnsupportedMediaType.js"), exports);
33
- tslib_1.__exportStar(require("./clientErrors/UpgradeRequired.js"), exports);
34
- tslib_1.__exportStar(require("./core/ClientException.js"), exports);
35
- tslib_1.__exportStar(require("./core/Exception.js"), exports);
36
- tslib_1.__exportStar(require("./core/RedirectException.js"), exports);
37
- tslib_1.__exportStar(require("./core/ServerException.js"), exports);
38
- tslib_1.__exportStar(require("./core/StatusFamily.js"), exports);
39
- tslib_1.__exportStar(require("./redirections/MovedPermanently.js"), exports);
40
- tslib_1.__exportStar(require("./redirections/MovedTemporarily.js"), exports);
41
- tslib_1.__exportStar(require("./redirections/MultipleChoices.js"), exports);
42
- tslib_1.__exportStar(require("./redirections/NotModified.js"), exports);
43
- tslib_1.__exportStar(require("./redirections/PermanentRedirect.js"), exports);
44
- tslib_1.__exportStar(require("./redirections/SeeOther.js"), exports);
45
- tslib_1.__exportStar(require("./redirections/TemporaryRedirect.js"), exports);
46
- tslib_1.__exportStar(require("./redirections/UseProxy.js"), exports);
47
- tslib_1.__exportStar(require("./serverErrors/BadGateway.js"), exports);
48
- tslib_1.__exportStar(require("./serverErrors/BandwidthLimitExceeded.js"), exports);
49
- tslib_1.__exportStar(require("./serverErrors/GatewayTimeout.js"), exports);
50
- tslib_1.__exportStar(require("./serverErrors/InternalServerError.js"), exports);
51
- tslib_1.__exportStar(require("./serverErrors/NetworkAuthenticationRequired.js"), exports);
52
- tslib_1.__exportStar(require("./serverErrors/NotExtended.js"), exports);
53
- tslib_1.__exportStar(require("./serverErrors/NotImplemented.js"), exports);
54
- tslib_1.__exportStar(require("./serverErrors/ProxyError.js"), exports);
55
- tslib_1.__exportStar(require("./serverErrors/ServiceUnavailable.js"), exports);
56
- tslib_1.__exportStar(require("./serverErrors/VariantAlsoNegotiates.js"), exports);
57
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,uEAA6C;AAC7C,uEAA6C;AAC7C,qEAA2C;AAC3C,8EAAoD;AACpD,sEAA4C;AAC5C,iEAAuC;AACvC,sEAA4C;AAC5C,2EAAiD;AACjD,6EAAmD;AACnD,+EAAqD;AACrD,0EAAgD;AAChD,qEAA2C;AAC3C,4EAAkD;AAClD,+EAAqD;AACrD,iFAAuD;AACvD,0FAAgE;AAChE,kFAAwD;AACxD,wFAA8D;AAC9D,sFAA4D;AAC5D,2EAAiD;AACjD,8EAAoD;AACpD,4EAAkD;AAClD,yEAA+C;AAC/C,uFAA6D;AAC7D,gFAAsD;AACtD,iFAAuD;AACvD,4EAAkD;AAClD,oEAA0C;AAC1C,8DAAoC;AACpC,sEAA4C;AAC5C,oEAA0C;AAC1C,iEAAuC;AACvC,6EAAmD;AACnD,6EAAmD;AACnD,4EAAkD;AAClD,wEAA8C;AAC9C,8EAAoD;AACpD,qEAA2C;AAC3C,8EAAoD;AACpD,qEAA2C;AAC3C,uEAA6C;AAC7C,mFAAyD;AACzD,2EAAiD;AACjD,gFAAsD;AACtD,0FAAgE;AAChE,wEAA8C;AAC9C,2EAAiD;AACjD,uEAA6C;AAC7C,+EAAqD;AACrD,kFAAwD"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MovedPermanently = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class MovedPermanently extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 301; }
7
- constructor(message, origin) {
8
- super(MovedPermanently.STATUS, message, origin);
9
- }
10
- }
11
- exports.MovedPermanently = MovedPermanently;
12
- //# sourceMappingURL=MovedPermanently.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,gBAAiB,SAAQ,wCAAiB;aACrC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MovedTemporarily = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class MovedTemporarily extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 302; }
7
- constructor(message, origin) {
8
- super(MovedTemporarily.STATUS, message, origin);
9
- this.name = "MOVED_TEMPORARILY";
10
- }
11
- }
12
- exports.MovedTemporarily = MovedTemporarily;
13
- //# sourceMappingURL=MovedTemporarily.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,gBAAiB,SAAQ,wCAAiB;aACrC,WAAM,GAAG,GAAG,CAAC;IAG7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAHlD,SAAI,GAAW,mBAAmB,CAAC;IAInC,CAAC;;AANH,4CAOC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MultipleChoices = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class MultipleChoices extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 300; }
7
- constructor(message, origin) {
8
- super(MultipleChoices.STATUS, message, origin);
9
- }
10
- }
11
- exports.MultipleChoices = MultipleChoices;
12
- //# sourceMappingURL=MultipleChoices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,eAAgB,SAAQ,wCAAiB;aACpC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotModified = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class NotModified extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 304; }
7
- constructor(message, origin) {
8
- super(NotModified.STATUS, message, origin);
9
- }
10
- }
11
- exports.NotModified = NotModified;
12
- //# sourceMappingURL=NotModified.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,WAAY,SAAQ,wCAAiB;aAChC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermanentRedirect = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class PermanentRedirect extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 308; }
7
- constructor(message, origin) {
8
- super(PermanentRedirect.STATUS, message, origin);
9
- }
10
- }
11
- exports.PermanentRedirect = PermanentRedirect;
12
- //# sourceMappingURL=PermanentRedirect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,iBAAkB,SAAQ,wCAAiB;aACtC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SeeOther = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class SeeOther extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 303; }
7
- constructor(message, origin) {
8
- super(SeeOther.STATUS, message, origin);
9
- }
10
- }
11
- exports.SeeOther = SeeOther;
12
- //# sourceMappingURL=SeeOther.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,QAAS,SAAQ,wCAAiB;aAC7B,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemporaryRedirect = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class TemporaryRedirect extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 307; }
7
- constructor(message, origin) {
8
- super(TemporaryRedirect.STATUS, message, origin);
9
- }
10
- }
11
- exports.TemporaryRedirect = TemporaryRedirect;
12
- //# sourceMappingURL=TemporaryRedirect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,iBAAkB,SAAQ,wCAAiB;aACtC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseProxy = void 0;
4
- const RedirectException_js_1 = require("../core/RedirectException.js");
5
- class UseProxy extends RedirectException_js_1.RedirectException {
6
- static { this.STATUS = 305; }
7
- constructor(message, origin) {
8
- super(UseProxy.STATUS, message, origin);
9
- }
10
- }
11
- exports.UseProxy = UseProxy;
12
- //# sourceMappingURL=UseProxy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAE/D,MAAa,QAAS,SAAQ,wCAAiB;aAC7B,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BadGateway = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class BadGateway extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 502; }
7
- constructor(message, origin) {
8
- super(BadGateway.STATUS, message, origin);
9
- }
10
- }
11
- exports.BadGateway = BadGateway;
12
- //# sourceMappingURL=BadGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,UAAW,SAAQ,oCAAe;aAC7B,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AALH,gCAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BandwidthLimitExceeded = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class BandwidthLimitExceeded extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 509; }
7
- constructor(message, origin) {
8
- super(BandwidthLimitExceeded.STATUS, message, origin);
9
- }
10
- }
11
- exports.BandwidthLimitExceeded = BandwidthLimitExceeded;
12
- //# sourceMappingURL=BandwidthLimitExceeded.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,sBAAuB,SAAQ,oCAAe;aACzC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;AALH,wDAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GatewayTimeout = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class GatewayTimeout extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 504; }
7
- constructor(message, origin) {
8
- super(GatewayTimeout.STATUS, message, origin);
9
- }
10
- }
11
- exports.GatewayTimeout = GatewayTimeout;
12
- //# sourceMappingURL=GatewayTimeout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GatewayTimeout.js","sourceRoot":"","sources":["../../../src/serverErrors/GatewayTimeout.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,cAAe,SAAQ,oCAAe;aACjC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalServerError = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class InternalServerError extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 500; }
7
- constructor(message, origin) {
8
- super(InternalServerError.STATUS, message, origin);
9
- }
10
- }
11
- exports.InternalServerError = InternalServerError;
12
- //# sourceMappingURL=InternalServerError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InternalServerError.js","sourceRoot":"","sources":["../../../src/serverErrors/InternalServerError.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,mBAAoB,SAAQ,oCAAe;aACtC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AALH,kDAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NetworkAuthenticationRequired = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class NetworkAuthenticationRequired extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 511; }
7
- constructor(message, origin) {
8
- super(NetworkAuthenticationRequired.STATUS, message, origin);
9
- }
10
- }
11
- exports.NetworkAuthenticationRequired = NetworkAuthenticationRequired;
12
- //# sourceMappingURL=NetworkAuthenticationRequired.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkAuthenticationRequired.js","sourceRoot":"","sources":["../../../src/serverErrors/NetworkAuthenticationRequired.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,6BAA8B,SAAQ,oCAAe;aAChD,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AALH,sEAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotExtended = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class NotExtended extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 510; }
7
- constructor(message, origin) {
8
- super(NotExtended.STATUS, message, origin);
9
- }
10
- }
11
- exports.NotExtended = NotExtended;
12
- //# sourceMappingURL=NotExtended.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotExtended.js","sourceRoot":"","sources":["../../../src/serverErrors/NotExtended.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,WAAY,SAAQ,oCAAe;aAC9B,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotImplemented = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class NotImplemented extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 501; }
7
- constructor(message, origin) {
8
- super(NotImplemented.STATUS, message, origin);
9
- }
10
- }
11
- exports.NotImplemented = NotImplemented;
12
- //# sourceMappingURL=NotImplemented.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotImplemented.js","sourceRoot":"","sources":["../../../src/serverErrors/NotImplemented.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,cAAe,SAAQ,oCAAe;aACjC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProxyError = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class ProxyError extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 502; }
7
- constructor(message, origin) {
8
- super(ProxyError.STATUS, message, origin);
9
- this.name = "PROXY_ERROR";
10
- }
11
- }
12
- exports.ProxyError = ProxyError;
13
- //# sourceMappingURL=ProxyError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProxyError.js","sourceRoot":"","sources":["../../../src/serverErrors/ProxyError.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,UAAW,SAAQ,oCAAe;aAC7B,WAAM,GAAG,GAAG,CAAC;IAG7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH5C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AANH,gCAOC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceUnavailable = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class ServiceUnavailable extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 503; }
7
- constructor(message, origin) {
8
- super(ServiceUnavailable.STATUS, message, origin);
9
- }
10
- }
11
- exports.ServiceUnavailable = ServiceUnavailable;
12
- //# sourceMappingURL=ServiceUnavailable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceUnavailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnavailable.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,kBAAmB,SAAQ,oCAAe;aACrC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AALH,gDAMC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VariantAlsoNegotiates = void 0;
4
- const ServerException_js_1 = require("../core/ServerException.js");
5
- class VariantAlsoNegotiates extends ServerException_js_1.ServerException {
6
- static { this.STATUS = 506; }
7
- constructor(message, origin) {
8
- super(VariantAlsoNegotiates.STATUS, message, origin);
9
- }
10
- }
11
- exports.VariantAlsoNegotiates = VariantAlsoNegotiates;
12
- //# sourceMappingURL=VariantAlsoNegotiates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VariantAlsoNegotiates.js","sourceRoot":"","sources":["../../../src/serverErrors/VariantAlsoNegotiates.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,MAAa,qBAAsB,SAAQ,oCAAe;aACxC,WAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AALH,sDAMC"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,6 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class BadMapping extends ClientException {
3
- static readonly STATUS = 421;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class BadRequest extends ClientException {
3
- static readonly STATUS = 400;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class Conflict extends ClientException {
3
- static readonly STATUS = 409;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class ExpectationFailed extends ClientException {
3
- static readonly STATUS = 417;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class Forbidden extends ClientException {
3
- static readonly STATUS = 403;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class Gone extends ClientException {
3
- static readonly STATUS = 410;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,6 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class ImATeapot extends ClientException {
3
- static readonly STATUS = 418;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class LengthRequired extends ClientException {
3
- static readonly STATUS = 411;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class MethodNotAllowed extends ClientException {
3
- static readonly STATUS = 405;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class MisdirectedRequest extends ClientException {
3
- static readonly STATUS = 421;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class NotAcceptable extends ClientException {
3
- static readonly STATUS = 406;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { ClientException } from "../core/ClientException.js";
2
- export declare class NotFound extends ClientException {
3
- static readonly STATUS = 404;
4
- constructor(message: string, origin?: Error | string | any);
5
- }