An HTTP response carried an unsuccessful status. Inspect status and the error message before deciding whether to retry.
Identification
Extends NgilaError. The status property contains the HTTP status returned by the server.
Handle in application code
import {APIError} from "./ngila.mjs";
try {
await client.models();
} catch (error) {
if (!(error instanceof APIError)) throw error;
console.error(error.name);
}