@tsed/exceptions 7.0.0-beta.12 → 7.0.0-beta.15
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/jest.config.js +14 -0
- package/lib/cjs/clientErrors/BadMapping.js +2 -2
- package/lib/cjs/clientErrors/BadMapping.js.map +1 -1
- package/lib/cjs/clientErrors/BadRequest.js +1 -1
- package/lib/cjs/clientErrors/BadRequest.js.map +1 -1
- package/lib/cjs/clientErrors/Conflict.js +1 -1
- package/lib/cjs/clientErrors/Conflict.js.map +1 -1
- package/lib/cjs/clientErrors/ExpectationFailed.js +1 -1
- package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -1
- package/lib/cjs/clientErrors/Forbidden.js +1 -1
- package/lib/cjs/clientErrors/Forbidden.js.map +1 -1
- package/lib/cjs/clientErrors/Gone.js +1 -1
- package/lib/cjs/clientErrors/Gone.js.map +1 -1
- package/lib/cjs/clientErrors/ImATeapot.js +2 -2
- package/lib/cjs/clientErrors/ImATeapot.js.map +1 -1
- package/lib/cjs/clientErrors/LengthRequired.js +1 -1
- package/lib/cjs/clientErrors/LengthRequired.js.map +1 -1
- package/lib/cjs/clientErrors/MethodNotAllowed.js +1 -1
- package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -1
- package/lib/cjs/clientErrors/MisdirectedRequest.js +1 -1
- package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -1
- package/lib/cjs/clientErrors/NotAcceptable.js +1 -1
- package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -1
- package/lib/cjs/clientErrors/NotFound.js +1 -1
- package/lib/cjs/clientErrors/NotFound.js.map +1 -1
- package/lib/cjs/clientErrors/PaymentRequired.js +1 -1
- package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -1
- package/lib/cjs/clientErrors/PreconditionFailed.js +1 -1
- package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -1
- package/lib/cjs/clientErrors/PreconditionRequired.js +1 -1
- package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -1
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +1 -1
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js +1 -1
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -1
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +1 -1
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +1 -1
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
- package/lib/cjs/clientErrors/RequestTimeout.js +1 -1
- package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -1
- package/lib/cjs/clientErrors/RequestURITooLong.js +1 -1
- package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -1
- package/lib/cjs/clientErrors/TooManyRequests.js +1 -1
- package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -1
- package/lib/cjs/clientErrors/Unauthorized.js +1 -1
- package/lib/cjs/clientErrors/Unauthorized.js.map +1 -1
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +1 -1
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -1
- package/lib/cjs/clientErrors/UnprocessableEntity.js +1 -1
- package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -1
- package/lib/cjs/clientErrors/UnsupportedMediaType.js +1 -1
- package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -1
- package/lib/cjs/clientErrors/UpgradeRequired.js +1 -1
- package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -1
- package/lib/cjs/core/Exception.js +31 -14
- package/lib/cjs/core/Exception.js.map +1 -1
- package/lib/cjs/redirections/MovedPermanently.js +1 -1
- package/lib/cjs/redirections/MovedPermanently.js.map +1 -1
- package/lib/cjs/redirections/MovedTemporarily.js +2 -2
- package/lib/cjs/redirections/MovedTemporarily.js.map +1 -1
- package/lib/cjs/redirections/MultipleChoices.js +1 -1
- package/lib/cjs/redirections/MultipleChoices.js.map +1 -1
- package/lib/cjs/redirections/NotModified.js +1 -1
- package/lib/cjs/redirections/NotModified.js.map +1 -1
- package/lib/cjs/redirections/PermanentRedirect.js +1 -1
- package/lib/cjs/redirections/PermanentRedirect.js.map +1 -1
- package/lib/cjs/redirections/SeeOther.js +1 -1
- package/lib/cjs/redirections/SeeOther.js.map +1 -1
- package/lib/cjs/redirections/TemporaryRedirect.js +1 -1
- package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -1
- package/lib/cjs/redirections/UseProxy.js +1 -1
- package/lib/cjs/redirections/UseProxy.js.map +1 -1
- package/lib/cjs/serverErrors/BadGateway.js +1 -1
- package/lib/cjs/serverErrors/BadGateway.js.map +1 -1
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +1 -1
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -1
- package/lib/cjs/serverErrors/GatewayTimeout.js +1 -1
- package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -1
- package/lib/cjs/serverErrors/InternalServerError.js +1 -1
- package/lib/cjs/serverErrors/InternalServerError.js.map +1 -1
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +1 -1
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
- package/lib/cjs/serverErrors/NotExtended.js +1 -1
- package/lib/cjs/serverErrors/NotExtended.js.map +1 -1
- package/lib/cjs/serverErrors/NotImplemented.js +1 -1
- package/lib/cjs/serverErrors/NotImplemented.js.map +1 -1
- package/lib/cjs/serverErrors/ProxyError.js +2 -2
- package/lib/cjs/serverErrors/ProxyError.js.map +1 -1
- package/lib/cjs/serverErrors/ServiceUnvailable.js +1 -1
- package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -1
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +1 -1
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -1
- package/lib/esm/clientErrors/BadMapping.js +2 -2
- package/lib/esm/clientErrors/BadMapping.js.map +1 -1
- package/lib/esm/clientErrors/BadRequest.js +1 -1
- package/lib/esm/clientErrors/BadRequest.js.map +1 -1
- package/lib/esm/clientErrors/Conflict.js +1 -1
- package/lib/esm/clientErrors/Conflict.js.map +1 -1
- package/lib/esm/clientErrors/ExpectationFailed.js +1 -1
- package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -1
- package/lib/esm/clientErrors/Forbidden.js +1 -1
- package/lib/esm/clientErrors/Forbidden.js.map +1 -1
- package/lib/esm/clientErrors/Gone.js +1 -1
- package/lib/esm/clientErrors/Gone.js.map +1 -1
- package/lib/esm/clientErrors/ImATeapot.js +2 -2
- package/lib/esm/clientErrors/ImATeapot.js.map +1 -1
- package/lib/esm/clientErrors/LengthRequired.js +1 -1
- package/lib/esm/clientErrors/LengthRequired.js.map +1 -1
- package/lib/esm/clientErrors/MethodNotAllowed.js +1 -1
- package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -1
- package/lib/esm/clientErrors/MisdirectedRequest.js +1 -1
- package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -1
- package/lib/esm/clientErrors/NotAcceptable.js +1 -1
- package/lib/esm/clientErrors/NotAcceptable.js.map +1 -1
- package/lib/esm/clientErrors/NotFound.js +1 -1
- package/lib/esm/clientErrors/NotFound.js.map +1 -1
- package/lib/esm/clientErrors/PaymentRequired.js +1 -1
- package/lib/esm/clientErrors/PaymentRequired.js.map +1 -1
- package/lib/esm/clientErrors/PreconditionFailed.js +1 -1
- package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -1
- package/lib/esm/clientErrors/PreconditionRequired.js +1 -1
- package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -1
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +1 -1
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
- package/lib/esm/clientErrors/RequestEntityTooLarge.js +1 -1
- package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -1
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +1 -1
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +1 -1
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
- package/lib/esm/clientErrors/RequestTimeout.js +1 -1
- package/lib/esm/clientErrors/RequestTimeout.js.map +1 -1
- package/lib/esm/clientErrors/RequestURITooLong.js +1 -1
- package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -1
- package/lib/esm/clientErrors/TooManyRequests.js +1 -1
- package/lib/esm/clientErrors/TooManyRequests.js.map +1 -1
- package/lib/esm/clientErrors/Unauthorized.js +1 -1
- package/lib/esm/clientErrors/Unauthorized.js.map +1 -1
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js +1 -1
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -1
- package/lib/esm/clientErrors/UnprocessableEntity.js +1 -1
- package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -1
- package/lib/esm/clientErrors/UnsupportedMediaType.js +1 -1
- package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -1
- package/lib/esm/clientErrors/UpgradeRequired.js +1 -1
- package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -1
- package/lib/esm/core/Exception.js +31 -14
- package/lib/esm/core/Exception.js.map +1 -1
- package/lib/esm/redirections/MovedPermanently.js +1 -1
- package/lib/esm/redirections/MovedPermanently.js.map +1 -1
- package/lib/esm/redirections/MovedTemporarily.js +2 -2
- package/lib/esm/redirections/MovedTemporarily.js.map +1 -1
- package/lib/esm/redirections/MultipleChoices.js +1 -1
- package/lib/esm/redirections/MultipleChoices.js.map +1 -1
- package/lib/esm/redirections/NotModified.js +1 -1
- package/lib/esm/redirections/NotModified.js.map +1 -1
- package/lib/esm/redirections/PermanentRedirect.js +1 -1
- package/lib/esm/redirections/PermanentRedirect.js.map +1 -1
- package/lib/esm/redirections/SeeOther.js +1 -1
- package/lib/esm/redirections/SeeOther.js.map +1 -1
- package/lib/esm/redirections/TemporaryRedirect.js +1 -1
- package/lib/esm/redirections/TemporaryRedirect.js.map +1 -1
- package/lib/esm/redirections/UseProxy.js +1 -1
- package/lib/esm/redirections/UseProxy.js.map +1 -1
- package/lib/esm/serverErrors/BadGateway.js +1 -1
- package/lib/esm/serverErrors/BadGateway.js.map +1 -1
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js +1 -1
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -1
- package/lib/esm/serverErrors/GatewayTimeout.js +1 -1
- package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -1
- package/lib/esm/serverErrors/InternalServerError.js +1 -1
- package/lib/esm/serverErrors/InternalServerError.js.map +1 -1
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +1 -1
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
- package/lib/esm/serverErrors/NotExtended.js +1 -1
- package/lib/esm/serverErrors/NotExtended.js.map +1 -1
- package/lib/esm/serverErrors/NotImplemented.js +1 -1
- package/lib/esm/serverErrors/NotImplemented.js.map +1 -1
- package/lib/esm/serverErrors/ProxyError.js +2 -2
- package/lib/esm/serverErrors/ProxyError.js.map +1 -1
- package/lib/esm/serverErrors/ServiceUnvailable.js +1 -1
- package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -1
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js +1 -1
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -1
- package/package.json +4 -3
- package/readme.md +1 -1
|
@@ -1 +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;
|
|
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;IAC7C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class MisdirectedRequest extends Exception {
|
|
3
|
+
static STATUS = 421;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(MisdirectedRequest.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
MisdirectedRequest.STATUS = 421;
|
|
8
8
|
//# sourceMappingURL=MisdirectedRequest.js.map
|
|
@@ -1 +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;
|
|
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;IAC/C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class NotAcceptable extends Exception {
|
|
3
|
+
static STATUS = 406;
|
|
3
4
|
constructor(message, origin = "You must accept content-type " + message) {
|
|
4
5
|
super(NotAcceptable.STATUS, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
NotAcceptable.STATUS = 406;
|
|
8
8
|
//# sourceMappingURL=NotAcceptable.js.map
|
|
@@ -1 +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;
|
|
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;IAC1C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class NotFound extends Exception {
|
|
3
|
+
static STATUS = 404;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(NotFound.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
NotFound.STATUS = 404;
|
|
8
8
|
//# sourceMappingURL=NotFound.js.map
|
|
@@ -1 +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;
|
|
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;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class PaymentRequired extends Exception {
|
|
3
|
+
static STATUS = 402;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(PaymentRequired.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
PaymentRequired.STATUS = 402;
|
|
8
8
|
//# sourceMappingURL=PaymentRequired.js.map
|
|
@@ -1 +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;
|
|
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;IAC5C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class PreconditionFailed extends Exception {
|
|
3
|
+
static STATUS = 412;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(PreconditionFailed.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
PreconditionFailed.STATUS = 412;
|
|
8
8
|
//# sourceMappingURL=PreconditionFailed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionFailed extends Exception {\n static readonly STATUS = 412;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionFailed.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class PreconditionRequired extends Exception {
|
|
3
|
+
static STATUS = 428;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(PreconditionRequired.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
PreconditionRequired.STATUS = 428;
|
|
8
8
|
//# sourceMappingURL=PreconditionRequired.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionRequired extends Exception {\n static readonly STATUS = 428;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionRequired.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class ProxyAuthentificationRequired extends Exception {
|
|
3
|
+
static STATUS = 407;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(ProxyAuthentificationRequired.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
ProxyAuthentificationRequired.STATUS = 407;
|
|
8
8
|
//# sourceMappingURL=ProxyAuthentificationRequired.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,6BAA8B,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,6BAA8B,SAAQ,SAAS;IAC1D,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyAuthentificationRequired extends Exception {\n static readonly STATUS = 407;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyAuthentificationRequired.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class RequestEntityTooLarge extends Exception {
|
|
3
|
+
static STATUS = 413;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(RequestEntityTooLarge.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
RequestEntityTooLarge.STATUS = 413;
|
|
8
8
|
//# sourceMappingURL=RequestEntityTooLarge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestEntityTooLarge extends Exception {\n static readonly STATUS = 413;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestEntityTooLarge.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class RequestHeaderFieldsTooLarge extends Exception {
|
|
3
|
+
static STATUS = 431;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
RequestHeaderFieldsTooLarge.STATUS = 431;
|
|
8
8
|
//# sourceMappingURL=RequestHeaderFieldsTooLarge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,SAAS;IACxD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestHeaderFieldsTooLarge extends Exception {\n static readonly STATUS = 431;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestHeaderFieldsTooLarge.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class RequestRangeUnsatisfiable extends Exception {
|
|
3
|
+
static STATUS = 416;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(RequestRangeUnsatisfiable.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
RequestRangeUnsatisfiable.STATUS = 416;
|
|
8
8
|
//# sourceMappingURL=RequestRangeUnsatisfiable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,SAAS;IACtD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestRangeUnsatisfiable extends Exception {\n static readonly STATUS = 416;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestRangeUnsatisfiable.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class RequestTimeout extends Exception {
|
|
3
|
+
static STATUS = 408;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(RequestTimeout.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
RequestTimeout.STATUS = 408;
|
|
8
8
|
//# sourceMappingURL=RequestTimeout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestTimeout extends Exception {\n static readonly STATUS = 408;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestTimeout.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class RequestURITooLong extends Exception {
|
|
3
|
+
static STATUS = 414;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(RequestURITooLong.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
RequestURITooLong.STATUS = 414;
|
|
8
8
|
//# sourceMappingURL=RequestURITooLong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestURITooLong extends Exception {\n static readonly STATUS = 414;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestURITooLong.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class TooManyRequests extends Exception {
|
|
3
|
+
static STATUS = 429;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(TooManyRequests.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
TooManyRequests.STATUS = 429;
|
|
8
8
|
//# sourceMappingURL=TooManyRequests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRequests extends Exception {\n static readonly STATUS = 429;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRequests.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class Unauthorized extends Exception {
|
|
3
|
+
static STATUS = 401;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(Unauthorized.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
Unauthorized.STATUS = 401;
|
|
8
8
|
//# sourceMappingURL=Unauthorized.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Unauthorized extends Exception {\n static readonly STATUS = 401;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Unauthorized.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class UnavailableForLegalReasons extends Exception {
|
|
3
|
+
static STATUS = 451;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(UnavailableForLegalReasons.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
UnavailableForLegalReasons.STATUS = 451;
|
|
8
8
|
//# sourceMappingURL=UnavailableForLegalReasons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnavailableForLegalReasons.js","sourceRoot":"","sources":["../../../src/clientErrors/UnavailableForLegalReasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"UnavailableForLegalReasons.js","sourceRoot":"","sources":["../../../src/clientErrors/UnavailableForLegalReasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IACvD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnavailableForLegalReasons extends Exception {\n static readonly STATUS = 451;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnavailableForLegalReasons.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class UnprocessableEntity extends Exception {
|
|
3
|
+
static STATUS = 422;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(UnprocessableEntity.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
UnprocessableEntity.STATUS = 422;
|
|
8
8
|
//# sourceMappingURL=UnprocessableEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnprocessableEntity.js","sourceRoot":"","sources":["../../../src/clientErrors/UnprocessableEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"UnprocessableEntity.js","sourceRoot":"","sources":["../../../src/clientErrors/UnprocessableEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnprocessableEntity extends Exception {\n static readonly STATUS = 422;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnprocessableEntity.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class UnsupportedMediaType extends Exception {
|
|
3
|
+
static STATUS = 415;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(UnsupportedMediaType.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
UnsupportedMediaType.STATUS = 415;
|
|
8
8
|
//# sourceMappingURL=UnsupportedMediaType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnsupportedMediaType.js","sourceRoot":"","sources":["../../../src/clientErrors/UnsupportedMediaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"UnsupportedMediaType.js","sourceRoot":"","sources":["../../../src/clientErrors/UnsupportedMediaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnsupportedMediaType extends Exception {\n static readonly STATUS = 415;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnsupportedMediaType.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class UpgradeRequired extends Exception {
|
|
3
|
+
static STATUS = 426;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(UpgradeRequired.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
UpgradeRequired.STATUS = 426;
|
|
8
8
|
//# sourceMappingURL=UpgradeRequired.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpgradeRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/UpgradeRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"UpgradeRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/UpgradeRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UpgradeRequired extends Exception {\n static readonly STATUS = 426;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UpgradeRequired.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -4,22 +4,39 @@ function getStatusConstant(status) {
|
|
|
4
4
|
return status === 200 ? "SUCCESS" : constantCase(String(statuses(status)));
|
|
5
5
|
}
|
|
6
6
|
export class Exception extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* Exception base name
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
name = "HTTP_EXCEPTION";
|
|
12
|
+
/**
|
|
13
|
+
* Message of the exception
|
|
14
|
+
*/
|
|
15
|
+
message;
|
|
16
|
+
/**
|
|
17
|
+
* Exception type
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
20
|
+
type = "HTTP_EXCEPTION";
|
|
21
|
+
/**
|
|
22
|
+
* Stack calling
|
|
23
|
+
*/
|
|
24
|
+
stack;
|
|
25
|
+
origin;
|
|
26
|
+
/**
|
|
27
|
+
* HTTP Code Status
|
|
28
|
+
*/
|
|
29
|
+
status;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
body;
|
|
34
|
+
/**
|
|
35
|
+
* Headers must be sent to the response
|
|
36
|
+
*/
|
|
37
|
+
headers = {};
|
|
7
38
|
constructor(status = 500, message = "", origin) {
|
|
8
39
|
super(message);
|
|
9
|
-
/**
|
|
10
|
-
* Exception base name
|
|
11
|
-
* @type {string}
|
|
12
|
-
*/
|
|
13
|
-
this.name = "HTTP_EXCEPTION";
|
|
14
|
-
/**
|
|
15
|
-
* Exception type
|
|
16
|
-
* @type {string}
|
|
17
|
-
*/
|
|
18
|
-
this.type = "HTTP_EXCEPTION";
|
|
19
|
-
/**
|
|
20
|
-
* Headers must be sent to the response
|
|
21
|
-
*/
|
|
22
|
-
this.headers = {};
|
|
23
40
|
this.status = status;
|
|
24
41
|
this.message = message;
|
|
25
42
|
this.name = getStatusConstant(status);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,OAAO,SAAU,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;;OAGG;IACI,IAAI,GAAW,gBAAgB,CAAC;IACvC;;OAEG;IACI,OAAO,CAAS;IACvB;;;OAGG;IACI,IAAI,GAAW,gBAAgB,CAAC;IACvC;;OAEG;IACI,KAAK,CAAS;IACd,MAAM,CAAc;IAC3B;;OAEG;IACI,MAAM,CAAS;IACtB;;OAEG;IACI,IAAI,CAAM;IACjB;;OAEG;IACI,OAAO,GAAyB,EAAE,CAAC;IAI1C,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AAED,MAAM,OAAO,aAAc,SAAQ,SAAS;CAAG","sourcesContent":["import {constantCase} from \"change-case\";\nimport statuses from \"statuses\";\n\nfunction getStatusConstant(status: number) {\n return status === 200 ? \"SUCCESS\" : constantCase(String(statuses(status)));\n}\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class MovedPermanently extends Exception {
|
|
3
|
+
static STATUS = 301;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(MovedPermanently.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
MovedPermanently.STATUS = 301;
|
|
8
8
|
//# sourceMappingURL=MovedPermanently.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,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"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class MovedTemporarily extends Exception {
|
|
3
|
+
static STATUS = 302;
|
|
4
|
+
name = "MOVED_TEMPORARILY";
|
|
3
5
|
constructor(message, origin) {
|
|
4
6
|
super(MovedTemporarily.STATUS, message, origin);
|
|
5
|
-
this.name = "MOVED_TEMPORARILY";
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
MovedTemporarily.STATUS = 302;
|
|
9
9
|
//# sourceMappingURL=MovedTemporarily.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAC7B,IAAI,GAAW,mBAAmB,CAAC;IAEnC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class MultipleChoices extends Exception {
|
|
3
|
+
static STATUS = 300;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(MultipleChoices.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
MultipleChoices.STATUS = 300;
|
|
8
8
|
//# sourceMappingURL=MultipleChoices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class NotModified extends Exception {
|
|
3
|
+
static STATUS = 304;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(NotModified.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
NotModified.STATUS = 304;
|
|
8
8
|
//# sourceMappingURL=NotModified.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,WAAY,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class PermanentRedirect extends Exception {
|
|
3
|
+
static STATUS = 308;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(PermanentRedirect.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
PermanentRedirect.STATUS = 308;
|
|
8
8
|
//# sourceMappingURL=PermanentRedirect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class SeeOther extends Exception {
|
|
3
|
+
static STATUS = 303;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(SeeOther.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
SeeOther.STATUS = 303;
|
|
8
8
|
//# sourceMappingURL=SeeOther.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class TemporaryRedirect extends Exception {
|
|
3
|
+
static STATUS = 307;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(TemporaryRedirect.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
TemporaryRedirect.STATUS = 307;
|
|
8
8
|
//# sourceMappingURL=TemporaryRedirect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class UseProxy extends Exception {
|
|
3
|
+
static STATUS = 305;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(UseProxy.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
UseProxy.STATUS = 305;
|
|
8
8
|
//# sourceMappingURL=UseProxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class BadGateway extends Exception {
|
|
3
|
+
static STATUS = 502;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(BadGateway.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
BadGateway.STATUS = 502;
|
|
8
8
|
//# sourceMappingURL=BadGateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Exception } from "../core/Exception.js";
|
|
2
2
|
export class BandwidthLimitExceeded extends Exception {
|
|
3
|
+
static STATUS = 509;
|
|
3
4
|
constructor(message, origin) {
|
|
4
5
|
super(BandwidthLimitExceeded.STATUS, message, origin);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
|
-
BandwidthLimitExceeded.STATUS = 509;
|
|
8
8
|
//# sourceMappingURL=BandwidthLimitExceeded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACnD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,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"]}
|