Stone.js API
    Preparing search index...

    What a refusal carries, so a caller knows when to come back.

    interface RateLimitErrorOptions {
        cause?: Error;
        code?: string;
        limit: number;
        metadata?: unknown;
        resetAt: number;
        retryAfter: number;
    }

    Hierarchy

    • ErrorOptions
      • RateLimitErrorOptions
    Index
    cause?: Error

    The original error that caused this error, useful for error chaining.

    code?: string

    A specific error code for identifying the error.

    limit: number

    The limit that was exceeded.

    metadata?: unknown

    Additional information or context about the error.

    resetAt: number

    Epoch ms at which the window resets.

    retryAfter: number

    Seconds to wait before retrying.