Console ↗

RateLimitError

A server or gateway throttled the request. Reduce concurrency and respect the retry window if provided.

Identification

Extends APIError. The status property contains the HTTP status returned by the server.

Handle in application code

import {RateLimitError} from "./ngila.mjs";
try {
  await client.models();
} catch (error) {
  if (!(error instanceof RateLimitError)) throw error;
  console.error(error.name, error.status);
}

Request rules and errors →