@coko/server
Version:
Reusable server for use by Coko's projects
15 lines • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const http_status_codes_1 = require("http-status-codes");
class NotFoundError extends Error {
status;
constructor(message, status) {
super(message);
Error.captureStackTrace(this, NotFoundError);
this.name = 'NotFoundError';
this.message = message || 'Not found';
this.status = status || http_status_codes_1.StatusCodes.NOT_FOUND;
}
}
exports.default = NotFoundError;
//# sourceMappingURL=NotFoundError.js.map