@tsed/exceptions 7.0.0-alpha.2 → 7.0.0-beta.1
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.
- package/lib/cjs/clientErrors/BadMapping.js +13 -0
- package/lib/cjs/clientErrors/BadMapping.js.map +1 -0
- package/lib/cjs/clientErrors/BadRequest.js +12 -0
- package/lib/cjs/clientErrors/BadRequest.js.map +1 -0
- package/lib/cjs/clientErrors/Conflict.js +12 -0
- package/lib/cjs/clientErrors/Conflict.js.map +1 -0
- package/lib/cjs/clientErrors/ExpectationFailed.js +12 -0
- package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -0
- package/lib/cjs/clientErrors/Forbidden.js +12 -0
- package/lib/cjs/clientErrors/Forbidden.js.map +1 -0
- package/lib/cjs/clientErrors/Gone.js +12 -0
- package/lib/cjs/clientErrors/Gone.js.map +1 -0
- package/lib/cjs/clientErrors/ImATeapot.js +13 -0
- package/lib/cjs/clientErrors/ImATeapot.js.map +1 -0
- package/lib/cjs/clientErrors/LengthRequired.js +12 -0
- package/lib/cjs/clientErrors/LengthRequired.js.map +1 -0
- package/lib/cjs/clientErrors/MethodNotAllowed.js +12 -0
- package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -0
- package/lib/cjs/clientErrors/MisdirectedRequest.js +12 -0
- package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -0
- package/lib/cjs/clientErrors/NotAcceptable.js +12 -0
- package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -0
- package/lib/cjs/clientErrors/NotFound.js +12 -0
- package/lib/cjs/clientErrors/NotFound.js.map +1 -0
- package/lib/cjs/clientErrors/PaymentRequired.js +12 -0
- package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -0
- package/lib/cjs/clientErrors/PreconditionFailed.js +12 -0
- package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -0
- package/lib/cjs/clientErrors/PreconditionRequired.js +12 -0
- package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -0
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +12 -0
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js +12 -0
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -0
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +12 -0
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +12 -0
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
- package/lib/cjs/clientErrors/RequestTimeout.js +12 -0
- package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -0
- package/lib/cjs/clientErrors/RequestURITooLong.js +12 -0
- package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -0
- package/lib/cjs/clientErrors/TooManyRequests.js +12 -0
- package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -0
- package/lib/cjs/clientErrors/Unauthorized.js +12 -0
- package/lib/cjs/clientErrors/Unauthorized.js.map +1 -0
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +12 -0
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -0
- package/lib/cjs/clientErrors/UnprocessableEntity.js +12 -0
- package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -0
- package/lib/cjs/clientErrors/UnsupportedMediaType.js +12 -0
- package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -0
- package/lib/cjs/clientErrors/UpgradeRequired.js +12 -0
- package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -0
- package/lib/cjs/clientErrors/index.js +31 -0
- package/lib/cjs/clientErrors/index.js.map +1 -0
- package/lib/cjs/core/Exception.js +61 -0
- package/lib/cjs/core/Exception.js.map +1 -0
- package/lib/cjs/core/index.js +5 -0
- package/lib/cjs/core/index.js.map +1 -0
- package/lib/cjs/index.js +8 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/redirections/MovedPermanently.js +12 -0
- package/lib/cjs/redirections/MovedPermanently.js.map +1 -0
- package/lib/cjs/redirections/MovedTemporarily.js +13 -0
- package/lib/cjs/redirections/MovedTemporarily.js.map +1 -0
- package/lib/cjs/redirections/MultipleChoices.js +12 -0
- package/lib/cjs/redirections/MultipleChoices.js.map +1 -0
- package/lib/cjs/redirections/NotModified.js +12 -0
- package/lib/cjs/redirections/NotModified.js.map +1 -0
- package/lib/cjs/redirections/PermanentRedirect.js +12 -0
- package/lib/cjs/redirections/PermanentRedirect.js.map +1 -0
- package/lib/cjs/redirections/SeeOther.js +12 -0
- package/lib/cjs/redirections/SeeOther.js.map +1 -0
- package/lib/cjs/redirections/TemporaryRedirect.js +12 -0
- package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -0
- package/lib/cjs/redirections/TooManyRedirects.js +12 -0
- package/lib/cjs/redirections/TooManyRedirects.js.map +1 -0
- package/lib/cjs/redirections/UseProxy.js +12 -0
- package/lib/cjs/redirections/UseProxy.js.map +1 -0
- package/lib/cjs/redirections/index.js +13 -0
- package/lib/cjs/redirections/index.js.map +1 -0
- package/lib/cjs/serverErrors/BadGateway.js +12 -0
- package/lib/cjs/serverErrors/BadGateway.js.map +1 -0
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +12 -0
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -0
- package/lib/cjs/serverErrors/GatewayTimeout.js +12 -0
- package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -0
- package/lib/cjs/serverErrors/InternalServerError.js +12 -0
- package/lib/cjs/serverErrors/InternalServerError.js.map +1 -0
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +12 -0
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
- package/lib/cjs/serverErrors/NotExtended.js +12 -0
- package/lib/cjs/serverErrors/NotExtended.js.map +1 -0
- package/lib/cjs/serverErrors/NotImplemented.js +12 -0
- package/lib/cjs/serverErrors/NotImplemented.js.map +1 -0
- package/lib/cjs/serverErrors/ProxyError.js +13 -0
- package/lib/cjs/serverErrors/ProxyError.js.map +1 -0
- package/lib/cjs/serverErrors/ServiceUnvailable.js +12 -0
- package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -0
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +12 -0
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -0
- package/lib/cjs/serverErrors/index.js +14 -0
- package/lib/cjs/serverErrors/index.js.map +1 -0
- package/lib/esm/clientErrors/BadMapping.js +9 -0
- package/lib/esm/clientErrors/BadMapping.js.map +1 -0
- package/lib/esm/clientErrors/BadRequest.js +8 -0
- package/lib/esm/clientErrors/BadRequest.js.map +1 -0
- package/lib/esm/clientErrors/Conflict.js +8 -0
- package/lib/esm/clientErrors/Conflict.js.map +1 -0
- package/lib/esm/clientErrors/ExpectationFailed.js +8 -0
- package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -0
- package/lib/esm/clientErrors/Forbidden.js +8 -0
- package/lib/esm/clientErrors/Forbidden.js.map +1 -0
- package/lib/esm/clientErrors/Gone.js +8 -0
- package/lib/esm/clientErrors/Gone.js.map +1 -0
- package/lib/esm/clientErrors/ImATeapot.js +9 -0
- package/lib/esm/clientErrors/ImATeapot.js.map +1 -0
- package/lib/esm/clientErrors/LengthRequired.js +8 -0
- package/lib/esm/clientErrors/LengthRequired.js.map +1 -0
- package/lib/esm/clientErrors/MethodNotAllowed.js +8 -0
- package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -0
- package/lib/esm/clientErrors/MisdirectedRequest.js +8 -0
- package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -0
- package/lib/esm/clientErrors/NotAcceptable.js +8 -0
- package/lib/esm/clientErrors/NotAcceptable.js.map +1 -0
- package/lib/esm/clientErrors/NotFound.js +8 -0
- package/lib/esm/clientErrors/NotFound.js.map +1 -0
- package/lib/esm/clientErrors/PaymentRequired.js +8 -0
- package/lib/esm/clientErrors/PaymentRequired.js.map +1 -0
- package/lib/esm/clientErrors/PreconditionFailed.js +8 -0
- package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -0
- package/lib/esm/clientErrors/PreconditionRequired.js +8 -0
- package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -0
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +8 -0
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
- package/lib/esm/clientErrors/RequestEntityTooLarge.js +8 -0
- package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -0
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +8 -0
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +8 -0
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
- package/lib/esm/clientErrors/RequestTimeout.js +8 -0
- package/lib/esm/clientErrors/RequestTimeout.js.map +1 -0
- package/lib/esm/clientErrors/RequestURITooLong.js +8 -0
- package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -0
- package/lib/esm/clientErrors/TooManyRequests.js +8 -0
- package/lib/esm/clientErrors/TooManyRequests.js.map +1 -0
- package/lib/esm/clientErrors/Unauthorized.js +8 -0
- package/lib/esm/clientErrors/Unauthorized.js.map +1 -0
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js +8 -0
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -0
- package/lib/esm/clientErrors/UnprocessableEntity.js +8 -0
- package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -0
- package/lib/esm/clientErrors/UnsupportedMediaType.js +8 -0
- package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -0
- package/lib/esm/clientErrors/UpgradeRequired.js +8 -0
- package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -0
- package/lib/esm/clientErrors/index.js +28 -0
- package/lib/esm/clientErrors/index.js.map +1 -0
- package/lib/esm/core/Exception.js +56 -0
- package/lib/esm/core/Exception.js.map +1 -0
- package/lib/esm/core/index.js +2 -0
- package/lib/esm/core/index.js.map +1 -0
- package/lib/esm/index.js +5 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/redirections/MovedPermanently.js +8 -0
- package/lib/esm/redirections/MovedPermanently.js.map +1 -0
- package/lib/esm/redirections/MovedTemporarily.js +9 -0
- package/lib/esm/redirections/MovedTemporarily.js.map +1 -0
- package/lib/esm/redirections/MultipleChoices.js +8 -0
- package/lib/esm/redirections/MultipleChoices.js.map +1 -0
- package/lib/esm/redirections/NotModified.js +8 -0
- package/lib/esm/redirections/NotModified.js.map +1 -0
- package/lib/esm/redirections/PermanentRedirect.js +8 -0
- package/lib/esm/redirections/PermanentRedirect.js.map +1 -0
- package/lib/esm/redirections/SeeOther.js +8 -0
- package/lib/esm/redirections/SeeOther.js.map +1 -0
- package/lib/esm/redirections/TemporaryRedirect.js +8 -0
- package/lib/esm/redirections/TemporaryRedirect.js.map +1 -0
- package/lib/esm/redirections/TooManyRedirects.js +8 -0
- package/lib/esm/redirections/TooManyRedirects.js.map +1 -0
- package/lib/esm/redirections/UseProxy.js +8 -0
- package/lib/esm/redirections/UseProxy.js.map +1 -0
- package/lib/esm/redirections/index.js +10 -0
- package/lib/esm/redirections/index.js.map +1 -0
- package/lib/esm/serverErrors/BadGateway.js +8 -0
- package/lib/esm/serverErrors/BadGateway.js.map +1 -0
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js +8 -0
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -0
- package/lib/esm/serverErrors/GatewayTimeout.js +8 -0
- package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -0
- package/lib/esm/serverErrors/InternalServerError.js +8 -0
- package/lib/esm/serverErrors/InternalServerError.js.map +1 -0
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +8 -0
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
- package/lib/esm/serverErrors/NotExtended.js +8 -0
- package/lib/esm/serverErrors/NotExtended.js.map +1 -0
- package/lib/esm/serverErrors/NotImplemented.js +8 -0
- package/lib/esm/serverErrors/NotImplemented.js.map +1 -0
- package/lib/esm/serverErrors/ProxyError.js +9 -0
- package/lib/esm/serverErrors/ProxyError.js.map +1 -0
- package/lib/esm/serverErrors/ServiceUnvailable.js +8 -0
- package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -0
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js +8 -0
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -0
- package/lib/esm/serverErrors/index.js +11 -0
- package/lib/esm/serverErrors/index.js.map +1 -0
- package/lib/{clientErrors → types/clientErrors}/BadMapping.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/BadRequest.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Conflict.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ExpectationFailed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Forbidden.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Gone.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ImATeapot.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/LengthRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/MethodNotAllowed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/MisdirectedRequest.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/NotAcceptable.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/NotFound.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PaymentRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PreconditionFailed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PreconditionRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ProxyAuthentificationRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestEntityTooLarge.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestHeaderFieldsTooLarge.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestRangeUnsatisfiable.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestTimeout.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestURITooLong.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/TooManyRequests.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Unauthorized.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnavailableForLegalReasons.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnprocessableEntity.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnsupportedMediaType.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UpgradeRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/index.d.ts +0 -0
- package/lib/{core → types/core}/Exception.d.ts +0 -0
- package/lib/{core → types/core}/index.d.ts +0 -0
- package/lib/{index.d.ts → types/index.d.ts} +0 -1
- package/lib/{redirections → types/redirections}/MovedPermanently.d.ts +0 -0
- package/lib/{redirections → types/redirections}/MovedTemporarily.d.ts +0 -0
- package/lib/{redirections → types/redirections}/MultipleChoices.d.ts +0 -0
- package/lib/{redirections → types/redirections}/NotModified.d.ts +0 -0
- package/lib/{redirections → types/redirections}/PermanentRedirect.d.ts +0 -0
- package/lib/{redirections → types/redirections}/SeeOther.d.ts +0 -0
- package/lib/{redirections → types/redirections}/TemporaryRedirect.d.ts +0 -0
- package/lib/{redirections → types/redirections}/TooManyRedirects.d.ts +0 -0
- package/lib/{redirections → types/redirections}/UseProxy.d.ts +0 -0
- package/lib/{redirections → types/redirections}/index.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/BadGateway.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/BandwidthLimitExceeded.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/GatewayTimeout.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/InternalServerError.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NetworkAuthenticationRequired.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NotExtended.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NotImplemented.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/ProxyError.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/ServiceUnvailable.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/VariantAlsoNegotiates.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/index.d.ts +0 -0
- package/package.json +12 -11
- package/tsconfig.compile.esm.json +23 -0
- package/lib/constants/statuses.d.ts +0 -4
- package/lib/index.js +0 -505
- package/lib/index.js.map +0 -1
- package/lib/index.modern.js +0 -457
- package/lib/index.modern.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;AAAA,2DAA4B","sourcesContent":["export * from \"./Exception\";\n"]}
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./core"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./clientErrors"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./redirections"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./serverErrors"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sDAAuB;AACvB,8DAA+B;AAC/B,8DAA+B;AAC/B,8DAA+B","sourcesContent":["export * from \"./core\";\nexport * from \"./clientErrors\";\nexport * from \"./redirections\";\nexport * from \"./serverErrors\";\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MovedPermanently = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class MovedPermanently extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(MovedPermanently.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.MovedPermanently = MovedPermanently;
|
|
11
|
+
MovedPermanently.STATUS = 301;
|
|
12
|
+
//# sourceMappingURL=MovedPermanently.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC;AALiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedPermanently extends Exception {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MovedTemporarily = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class MovedTemporarily extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(MovedTemporarily.STATUS, message, origin);
|
|
8
|
+
this.name = "MOVED_TEMPORARILY";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MovedTemporarily = MovedTemporarily;
|
|
12
|
+
MovedTemporarily.STATUS = 302;
|
|
13
|
+
//# sourceMappingURL=MovedTemporarily.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAI7C,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;AANiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultipleChoices = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class MultipleChoices extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(MultipleChoices.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.MultipleChoices = MultipleChoices;
|
|
11
|
+
MultipleChoices.STATUS = 300;
|
|
12
|
+
//# sourceMappingURL=MultipleChoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,eAAgB,SAAQ,qBAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC;AALiB,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MultipleChoices extends Exception {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotModified = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class NotModified extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(NotModified.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NotModified = NotModified;
|
|
11
|
+
NotModified.STATUS = 304;
|
|
12
|
+
//# sourceMappingURL=NotModified.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC;AALiB,kBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotModified extends Exception {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PermanentRedirect = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class PermanentRedirect extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(PermanentRedirect.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.PermanentRedirect = PermanentRedirect;
|
|
11
|
+
PermanentRedirect.STATUS = 308;
|
|
12
|
+
//# sourceMappingURL=PermanentRedirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PermanentRedirect extends Exception {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SeeOther = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class SeeOther extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(SeeOther.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SeeOther = SeeOther;
|
|
11
|
+
SeeOther.STATUS = 303;
|
|
12
|
+
//# sourceMappingURL=SeeOther.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class SeeOther extends Exception {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemporaryRedirect = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class TemporaryRedirect extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(TemporaryRedirect.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TemporaryRedirect = TemporaryRedirect;
|
|
11
|
+
TemporaryRedirect.STATUS = 307;
|
|
12
|
+
//# sourceMappingURL=TemporaryRedirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TemporaryRedirect extends Exception {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TooManyRedirects = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class TooManyRedirects extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(TooManyRedirects.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TooManyRedirects = TooManyRedirects;
|
|
11
|
+
TooManyRedirects.STATUS = 310;
|
|
12
|
+
//# sourceMappingURL=TooManyRedirects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooManyRedirects.js","sourceRoot":"","sources":["../../../src/redirections/TooManyRedirects.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC;AALiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRedirects extends Exception {\n static readonly STATUS = 310;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRedirects.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseProxy = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class UseProxy extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(UseProxy.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.UseProxy = UseProxy;
|
|
11
|
+
UseProxy.STATUS = 305;
|
|
12
|
+
//# sourceMappingURL=UseProxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UseProxy extends Exception {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./MovedPermanently"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./MovedTemporarily"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./MultipleChoices"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./NotModified"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./PermanentRedirect"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./SeeOther"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./TemporaryRedirect"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./TooManyRedirects"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./UseProxy"), exports);
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redirections/index.ts"],"names":[],"mappings":";;;AAAA,kEAAmC;AACnC,kEAAmC;AACnC,iEAAkC;AAClC,6DAA8B;AAC9B,mEAAoC;AACpC,0DAA2B;AAC3B,mEAAoC;AACpC,kEAAmC;AACnC,0DAA2B","sourcesContent":["export * from \"./MovedPermanently\";\nexport * from \"./MovedTemporarily\";\nexport * from \"./MultipleChoices\";\nexport * from \"./NotModified\";\nexport * from \"./PermanentRedirect\";\nexport * from \"./SeeOther\";\nexport * from \"./TemporaryRedirect\";\nexport * from \"./TooManyRedirects\";\nexport * from \"./UseProxy\";\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadGateway = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class BadGateway extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(BadGateway.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.BadGateway = BadGateway;
|
|
11
|
+
BadGateway.STATUS = 502;
|
|
12
|
+
//# sourceMappingURL=BadGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AALH,gCAMC;AALiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadGateway extends Exception {\n static readonly STATUS = 502;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadGateway.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BandwidthLimitExceeded = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class BandwidthLimitExceeded extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(BandwidthLimitExceeded.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.BandwidthLimitExceeded = BandwidthLimitExceeded;
|
|
11
|
+
BandwidthLimitExceeded.STATUS = 509;
|
|
12
|
+
//# sourceMappingURL=BandwidthLimitExceeded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,sBAAuB,SAAQ,qBAAS;IAGnD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;AALH,wDAMC;AALiB,6BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BandwidthLimitExceeded extends Exception {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GatewayTimeout = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class GatewayTimeout extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(GatewayTimeout.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.GatewayTimeout = GatewayTimeout;
|
|
11
|
+
GatewayTimeout.STATUS = 504;
|
|
12
|
+
//# sourceMappingURL=GatewayTimeout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayTimeout.js","sourceRoot":"","sources":["../../../src/serverErrors/GatewayTimeout.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class GatewayTimeout extends Exception {\n static readonly STATUS = 504;\n\n constructor(message: string, origin?: Error | string | any) {\n super(GatewayTimeout.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalServerError = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class InternalServerError extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(InternalServerError.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.InternalServerError = InternalServerError;
|
|
11
|
+
InternalServerError.STATUS = 500;
|
|
12
|
+
//# sourceMappingURL=InternalServerError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalServerError.js","sourceRoot":"","sources":["../../../src/serverErrors/InternalServerError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,mBAAoB,SAAQ,qBAAS;IAGhD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AALH,kDAMC;AALiB,0BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class InternalServerError extends Exception {\n static readonly STATUS = 500;\n\n constructor(message: string, origin?: Error | string | any) {\n super(InternalServerError.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NetworkAuthenticationRequired = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class NetworkAuthenticationRequired extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(NetworkAuthenticationRequired.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NetworkAuthenticationRequired = NetworkAuthenticationRequired;
|
|
11
|
+
NetworkAuthenticationRequired.STATUS = 511;
|
|
12
|
+
//# sourceMappingURL=NetworkAuthenticationRequired.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkAuthenticationRequired.js","sourceRoot":"","sources":["../../../src/serverErrors/NetworkAuthenticationRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,6BAA8B,SAAQ,qBAAS;IAG1D,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AALH,sEAMC;AALiB,oCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NetworkAuthenticationRequired extends Exception {\n static readonly STATUS = 511;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NetworkAuthenticationRequired.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotExtended = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class NotExtended extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(NotExtended.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NotExtended = NotExtended;
|
|
11
|
+
NotExtended.STATUS = 510;
|
|
12
|
+
//# sourceMappingURL=NotExtended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotExtended.js","sourceRoot":"","sources":["../../../src/serverErrors/NotExtended.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC;AALiB,kBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotExtended extends Exception {\n static readonly STATUS = 510;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotExtended.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotImplemented = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class NotImplemented extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(NotImplemented.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NotImplemented = NotImplemented;
|
|
11
|
+
NotImplemented.STATUS = 501;
|
|
12
|
+
//# sourceMappingURL=NotImplemented.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotImplemented.js","sourceRoot":"","sources":["../../../src/serverErrors/NotImplemented.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotImplemented extends Exception {\n static readonly STATUS = 501;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotImplemented.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProxyError = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class ProxyError extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(ProxyError.STATUS, message, origin);
|
|
8
|
+
this.name = "PROXY_ERROR";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ProxyError = ProxyError;
|
|
12
|
+
ProxyError.STATUS = 502;
|
|
13
|
+
//# sourceMappingURL=ProxyError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyError.js","sourceRoot":"","sources":["../../../src/serverErrors/ProxyError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAIvC,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;AANiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyError extends Exception {\n static readonly STATUS = 502;\n name: string = \"PROXY_ERROR\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyError.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceUnvailable = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class ServiceUnvailable extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(ServiceUnvailable.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ServiceUnvailable = ServiceUnvailable;
|
|
11
|
+
ServiceUnvailable.STATUS = 503;
|
|
12
|
+
//# sourceMappingURL=ServiceUnvailable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ServiceUnvailable extends Exception {\n static readonly STATUS = 503;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ServiceUnvailable.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariantAlsoNegotiates = void 0;
|
|
4
|
+
const Exception_1 = require("../core/Exception");
|
|
5
|
+
class VariantAlsoNegotiates extends Exception_1.Exception {
|
|
6
|
+
constructor(message, origin) {
|
|
7
|
+
super(VariantAlsoNegotiates.STATUS, message, origin);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.VariantAlsoNegotiates = VariantAlsoNegotiates;
|
|
11
|
+
VariantAlsoNegotiates.STATUS = 506;
|
|
12
|
+
//# sourceMappingURL=VariantAlsoNegotiates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariantAlsoNegotiates.js","sourceRoot":"","sources":["../../../src/serverErrors/VariantAlsoNegotiates.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,qBAAsB,SAAQ,qBAAS;IAGlD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AALH,sDAMC;AALiB,4BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class VariantAlsoNegotiates extends Exception {\n static readonly STATUS = 506;\n\n constructor(message: string, origin?: Error | string | any) {\n super(VariantAlsoNegotiates.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./BadGateway"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./GatewayTimeout"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./InternalServerError"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./NotImplemented"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./ProxyError"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./ServiceUnvailable"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./NetworkAuthenticationRequired"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./NotExtended"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./VariantAlsoNegotiates"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./BandwidthLimitExceeded"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/serverErrors/index.ts"],"names":[],"mappings":";;;AAAA,4DAA6B;AAC7B,gEAAiC;AACjC,qEAAsC;AACtC,gEAAiC;AACjC,4DAA6B;AAC7B,mEAAoC;AACpC,+EAAgD;AAChD,6DAA8B;AAC9B,uEAAwC;AACxC,wEAAyC","sourcesContent":["export * from \"./BadGateway\";\nexport * from \"./GatewayTimeout\";\nexport * from \"./InternalServerError\";\nexport * from \"./NotImplemented\";\nexport * from \"./ProxyError\";\nexport * from \"./ServiceUnvailable\";\nexport * from \"./NetworkAuthenticationRequired\";\nexport * from \"./NotExtended\";\nexport * from \"./VariantAlsoNegotiates\";\nexport * from \"./BandwidthLimitExceeded\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class BadMapping extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(BadMapping.STATUS, message, origin);
|
|
5
|
+
this.name = "BAD_MAPPING";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
BadMapping.STATUS = 421;
|
|
9
|
+
//# sourceMappingURL=BadMapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadMapping.js","sourceRoot":"","sources":["../../../src/clientErrors/BadMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAIvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH5C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AALe,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadMapping extends Exception {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/BadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AAJe,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadRequest extends Exception {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Conflict.js","sourceRoot":"","sources":["../../../src/clientErrors/Conflict.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Conflict extends Exception {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class ExpectationFailed extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(ExpectationFailed.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
ExpectationFailed.STATUS = 417;
|
|
8
|
+
//# sourceMappingURL=ExpectationFailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpectationFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/ExpectationFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ExpectationFailed extends Exception {\n static readonly STATUS = 417;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ExpectationFailed.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Forbidden.js","sourceRoot":"","sources":["../../../src/clientErrors/Forbidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAGtC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;;AAJe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Forbidden extends Exception {\n static readonly STATUS = 403;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Forbidden.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gone.js","sourceRoot":"","sources":["../../../src/clientErrors/Gone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,IAAK,SAAQ,SAAS;IAGjC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,WAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Gone extends Exception {\n static readonly STATUS = 410;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Gone.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class ImATeapot extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(ImATeapot.STATUS, message, origin);
|
|
5
|
+
this.name = "IM_A_TEAPOT";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
ImATeapot.STATUS = 418;
|
|
9
|
+
//# sourceMappingURL=ImATeapot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImATeapot.js","sourceRoot":"","sources":["../../../src/clientErrors/ImATeapot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAItC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH3C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AALe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ImATeapot extends Exception {\n static readonly STATUS = 418;\n name: string = \"IM_A_TEAPOT\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ImATeapot.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LengthRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/LengthRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AAJe,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class LengthRequired extends Exception {\n static readonly STATUS = 411;\n\n constructor(message: string, origin?: Error | string | any) {\n super(LengthRequired.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class MethodNotAllowed extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(MethodNotAllowed.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
MethodNotAllowed.STATUS = 405;
|
|
8
|
+
//# sourceMappingURL=MethodNotAllowed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MethodNotAllowed.js","sourceRoot":"","sources":["../../../src/clientErrors/MethodNotAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AAJe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MethodNotAllowed extends Exception {\n static readonly STATUS = 405;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MethodNotAllowed.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class MisdirectedRequest extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(MisdirectedRequest.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
MisdirectedRequest.STATUS = 421;
|
|
8
|
+
//# sourceMappingURL=MisdirectedRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MisdirectedRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/MisdirectedRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AAJe,yBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MisdirectedRequest extends Exception {\n static readonly STATUS = 421;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MisdirectedRequest.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class NotAcceptable extends Exception {
|
|
3
|
+
constructor(message, origin = "You must accept content-type " + message) {
|
|
4
|
+
super(NotAcceptable.STATUS, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
NotAcceptable.STATUS = 406;
|
|
8
|
+
//# sourceMappingURL=NotAcceptable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotAcceptable.js","sourceRoot":"","sources":["../../../src/clientErrors/NotAcceptable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAG1C,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,oBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotAcceptable extends Exception {\n static readonly STATUS = 406;\n\n constructor(message: string, origin: Error | string | any = \"You must accept content-type \" + message) {\n super(NotAcceptable.STATUS, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../src/clientErrors/NotFound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotFound extends Exception {\n static readonly STATUS = 404;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotFound.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception";
|
|
2
|
+
export class PaymentRequired extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(PaymentRequired.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
PaymentRequired.STATUS = 402;
|
|
8
|
+
//# sourceMappingURL=PaymentRequired.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PaymentRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PaymentRequired extends Exception {\n static readonly STATUS = 402;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PaymentRequired.STATUS, message, origin);\n }\n}\n"]}
|