Function isQuotaError

  • Whether an HTTP response signals a quota or billing exhaustion that a key pool should treat as "rest this key": 429, 402 or 456, or a body naming one of the providers' quota signals.

    Parameters

    • status: number
    • body: string

    Returns boolean