Interface ErrorReply

Source
Expand description

An HTTP error response. The server returns this status code with a format-appropriate body.

interface ErrorReply {
    message: string;
    status: number;
    type?: string;
}

Properties§

§readonly message: string

Error message in the response body.

§readonly status: number

HTTP status code, e.g. 429 or 500.

§readonly type?: string

Error type string in the response body.

defaultValue

Format-specific (e.g. "server_error" for OpenAI, "api_error" for Anthropic).