Console ↗

InternalServerError

The upstream service or gateway failed while processing the request. Record the status and apply a bounded retry policy where appropriate.

Identification

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

Handle in application code

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

Request rules and errors →