Class: ModelGatewayClientError
HTTP error returned by the model gateway.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelGatewayClientError(
status,response?):ModelGatewayClientError
Parameters
Section titled “Parameters”status
Section titled “status”number
response?
Section titled “response?”{ error: { code?: string | number | null; message: string; type: string; }; } | { error: { message: string; type: string; }; type: "error"; }
Returns
Section titled “Returns”ModelGatewayClientError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”Error.message
name:
string
Inherited from
Section titled “Inherited from”Error.name
response?
Section titled “response?”
readonlyoptionalresponse?: {error: {code?:string|number|null;message:string;type:string; }; } | {error: {message:string;type:string; };type:"error"; }
stack?
Section titled “stack?”
optionalstack?:string
Inherited from
Section titled “Inherited from”Error.stack
status
Section titled “status”
readonlystatus:number