Console ↗

BadRequestError

The endpoint rejected the request envelope. Check the model name, body format, and required fields.

Identification

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

Handle in application code

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

Request rules and errors →