Skip to content

Error codes

Errors follow Connect’s status-code conventions, which map cleanly onto HTTP. The SDK surfaces typed error classes; raw HTTP callers get the matching status.

CodeMeaningTypical cause
unauthenticated (401)Missing or invalid tokenNo Authorization header, expired token, revoked token
permission_denied (403)Authenticated but not allowedRead-only token attempting a write; cross-workspace access
not_found (404)Repo or path doesn’t existWrong slug, wrong ref, missing file
already_exists (409)Slug takenCreating a repo with an existing slug in the same workspace
failed_precondition (412)Optimistic-concurrency check failedexpected_head doesn’t match current ref
resource_exhausted (429)Rate limit or lease contentionToo many writes to the same branch from many writers
internal (500)Server-side errorGenuine bug — please tell us

Detailed handling notes per code are in flight.