Skip to main content

sdk_status_message

Function sdk_status_message 

Source
pub fn sdk_status_message(
    status: u16,
    error: Option<&Value>,
    raw: Option<&str>,
) -> String
Expand description

The error message the Stainless SDKs (Anthropic, OpenAI) give a failed status: <status> <error.message>, the error as JSON, or the raw body.