Shorty API

API error reference — Shorty API

Every error the Shorty API can return, as RFC 9457 problem responses with a stable machine-readable code. Switch on the code, not the HTTP status.

Open in ClaudeOpen in ChatGPT

Every error is an RFC 9457 application/problem+json body carrying a stable code. Switch on code, never on the human title or (alone) the HTTP status. Each code links to a page explaining when it happens and how to fix it.

CodeHTTPMeaning
`unauthorized`401Unauthorized
`invalid_api_key`401Invalid API key
`insufficient_scope`403Insufficient scope
`feature_not_enabled`403Feature not enabled
`rate_limited`429Rate limit exceeded
`quota_exhausted`429Quota exhausted
`idempotency_conflict`409Idempotency conflict
`idempotency_key_reused`422Idempotency key reused
`idempotency_in_progress`409Idempotency request in progress
`resource_not_found`404Resource not found
`resource_not_ready`409Resource not ready
`validation_failed`400Validation failed
`request_too_large`413Request too large
`service_unavailable`503Service unavailable
`internal_error`500Internal server error