UNPKG

@foundry-ai/api-errors

Version:

Common errors that can be thrown and caught reliably across services

12 lines (11 loc) 429 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const baseError_1 = require("./baseError"); class ForbiddenError extends baseError_1.BaseError { constructor(message = 'Forbidden', status = 403) { super(message, status, 'forbidden_error'); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; } } exports.ForbiddenError = ForbiddenError;