Skip to content

Class: ModelGatewayClientError

HTTP error returned by the model gateway.

  • Error

new ModelGatewayClientError(status, response?): ModelGatewayClientError

number

{ error: { code?: string | number | null; message: string; type: string; }; } | { error: { message: string; type: string; }; type: "error"; }

ModelGatewayClientError

Error.constructor

optional cause?: unknown

Error.cause


message: string

Error.message


name: string

Error.name


readonly optional response?: { error: { code?: string | number | null; message: string; type: string; }; } | { error: { message: string; type: string; }; type: "error"; }


optional stack?: string

Error.stack


readonly status: number