export class PiboAuthError extends Error {
    statusCode;
    constructor(message, statusCode) {
        super(message);
        this.statusCode = statusCode;
        this.name = "PiboAuthError";
    }
}
export function createUnauthenticatedError() {
    return new PiboAuthError("Unauthenticated", 401);
}
export function createForbiddenAuthError() {
    return new PiboAuthError("Forbidden", 403);
}
