Skip to main content

open_error_status

Function open_error_status 

Source
fn open_error_status(e: &str) -> StatusCode
Expand description

The HTTP status for agent.open’s own error vocabulary. AGENT_NOT_FOUND / TEMPLATE_NOT_OPENABLE / INVALID_PROVIDER / CLI_NOT_AVAILABLE are the caller’s problem (a bad target, or a CLI that could not be installed); CLI_INSTALLING is neither — the CLI is on its way, so the same request will succeed shortly (503, retryable); anything else is a server-side failure.