Sylica
ModelsBlogsPricingDocsComplianceSign inGet started
ModelsBlogsPricingDocsCompliance
Sign inGet started

Documentation

Sylica Gateway v1

Last updated: April 20, 2026

Documentation HomeOverviewQuickstartAuthenticationEndpointsChat CompletionsStreamingRoutingErrors and RetriesBilling and CreditsProduction Readiness
(c) 2026 Sylica AI. The Unified Interface For LLMs.
PrivacyTermsCookiesDPA

Errors and Retries

Error handling should classify failures by retryability and isolate user-visible behavior from transient provider instability.

Treat 4xx contract and auth errors as terminal unless user input changes. Treat 429 and most 5xx categories as retryable with bounded exponential backoff and jitter.

Error Code Matrix

CodeHTTPRetryableMeaning
invalid_request400noSchema, parameter, or request-shape violation.
authentication_error401noInvalid API key or malformed bearer header.
permission_denied403noBlocked provider, route, or policy decision.
not_found404noUnknown route or unknown model slug.
insufficient_credits402noOrganization credit balance is depleted.
rate_limited429yesPer-key or tenant request quota exceeded.
upstream_error502yesProvider returned transient gateway failure.
timeout504yesProvider response exceeded timeout budget.
internal_error500yesUnexpected gateway internal failure.

Error Envelope

json
{
  "error": {
    "type": "rate_limited",
    "message": "rate limit exceeded for this API key"
  }
}

Retry Guidance

Honor retry-after whenever present. Keep retry count finite, surface useful status to users, and include request IDs in logs. This avoids silent failures while protecting upstream providers from retry storms.