UNPKG

@gabliam/web-core

Version:
14 lines (13 loc) 646 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GoneException = void 0; const tslib_1 = require("tslib"); const http_status_codes_1 = tslib_1.__importDefault(require("http-status-codes")); const statuses_1 = tslib_1.__importDefault(require("statuses")); const http_exception_1 = require("./http-exception"); class GoneException extends http_exception_1.HttpException { constructor(message, error = statuses_1.default.message[http_status_codes_1.default.GONE], otherFields = {}) { super(message, http_status_codes_1.default.GONE, error, otherFields); } } exports.GoneException = GoneException;