DocumentationError Reference

DocsReference09

Error Reference

Error responses contain a human-readable error string. Use the HTTP status for program flow; error text may become more specific as validation improves.

Format

Error body
{
  "error": "Short code already taken"
}

Codes

API error codes
HTTPExample errorMeaning
400Invalid URLRequest JSON or a field is invalid.
401UnauthorizedThe API key is missing, invalid, expired, or lacks the required scope.
403Expiring links require Pro tier or aboveThe account plan does not include the requested capability.
404Not foundThe resource does not exist for this account.
409Short code already takenChoose another custom code.
422That URL is flagged as phishing by Google Safe BrowsingThe destination failed a safety check.
429Too many requestsWait for Retry-After or the returned available_at time.
500Could not create the short linkRetry with exponential backoff.

Retrying

4xx errors are deterministic — fix the request and retry. HTTP 429 responses include a Retry-After header in seconds. For 5xx, retry with exponential backoff (250ms · 500ms · 1s · 2s · 4s, max 5 tries).

API Error Reference | Lixrl