UNPKG

@gfticket/common

Version:

An auth package to make micro-service authentication easy to integrate for other services

15 lines (14 loc) 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotFoundError = void 0; const custom_error_1 = require("./custom-error"); class NotFoundError extends custom_error_1.CustomError { constructor() { super("Route Not Found"); this.statusCode = 404; } serializeErrors() { return [{ message: "The part you are looking for does not exist 😥" }]; } } exports.NotFoundError = NotFoundError;