[SambaNova API error codes]: 400 context_length_exceeded: reduce prompt and response length. 400 model_not_found: verify the model ID is in your subscription. 401 invalid_authentication: generate a new key in the SambaCloud portal. 408 request_timeout: retry with a smaller payload. 410 model_deprecated: the model is gone, use a currently supported one. 429 insufficient_quota: rate limit hit, upgrade the plan. 429 queue_full: too many in-flight requests, retry after a delay. 500: retry, then contact support. 503 maintenance: the model is temporarily down, try later.

Context: SambaNova's own error codes tell you whether to fix, retry, or upgrade.