INNER CODE UNIT · TypeScript

CauraApiError

caura-ai/caura · clients/typescript/src/index.ts:77

export class CauraApiError extends CauraError {
  readonly statusCode: number;
  readonly details: unknown;
  constructor(statusCode: number, message: string, details?: unknown) {
    super(`[${statusCode}] ${message}`);
    this.name = "CauraApiError";
    this.statusCode = statusCode;
    this.details = details;
  }
}

/** Raised on 401/403 — bad or insufficiently-scoped credential. */
export class AuthError extends CauraApiError {}

/** Raised on 404. */
export class NotFoundError extends CauraApiError {}

/** Raised on 429, with the optional retry delay in seconds. */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…