import type { CustomErrorOptions } from "../types/CustomErrorOptions"; import { CustomError } from "./CustomError"; export class Unauthorized extends CustomError { constructor(code: string, options: CustomErrorOptions = {}) { super(code, options); Object.setPrototypeOf(this, Unauthorized.prototype); this.name = "Unauthorized"; } }