error-advisor
Version:
NPM module that aim to facilitate the error handling by providing http errors classes and also let you customize business errors as well with handy and clean way.
15 lines • 617 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const StatusCode_1 = require("../../enum/StatusCode");
class RangeNotSatisfiable extends Error {
constructor(message) {
message = message || "Request cannot be fulfilled - Requested ranges cannot be served.";
super(message);
this.name = "Range Not Satisfiable";
this.statusCode = StatusCode_1.StatusCode.RANGE_NOT_SATISFIABLE;
this.type = this.name;
this.timestamp = +new Date();
}
}
exports.default = RangeNotSatisfiable;
//# sourceMappingURL=RangeNotSatisfiable.js.map