An HTTP error response. The server returns this status code with a format-appropriate body.
interface ErrorReply { message: string; status: number; type?: string;}
readonly message: string
Error message in the response body.
readonly status: number
HTTP status code, e.g. 429 or 500.
429
500
readonly type?: string
Error type string in the response body.
Format-specific (e.g. "server_error" for OpenAI, "api_error" for Anthropic).
"server_error"
"api_error"
An HTTP error response. The server returns this status code with a format-appropriate body.