Guides · Guide

Errors

The error format, every error code, and what to do about each.

Updated 2 December 2026

The format

Every error has the same shape, with a stable code for your program, a message for a person, a request_id for support and a doc_url that comes back to this page:

json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This token does not have the \"resource.write\" scope.",
    "request_id": "req_5c1e9a07b24d6f83a0e1c752",
    "doc_url": "https://docs.colossium.cloud/errors#insufficient_scope",
    "details": { "required_scope": "resource.write" }
  }
}
  • Branch on `code`, never on message. Messages can be reworded. Codes will not change in v1.
  • `details` is present only when it helps, for example the scope that was needed or the fields that were wrong.
  • Log `code`, `request_id` and the status. Never log headers or bodies that may hold a token or personal data.

Errors from a token that is refused add WWW-Authenticate: Bearer realm="colossium" to a 401.

Every code

CodeStatusMeaning
missing_token401No Authorization header.
invalid_token401The token is not valid.
token_revoked401The token was revoked.
token_expired401The token has expired.
token_in_url400The token was sent in the URL. Use the header.
ip_not_allowed403The token has an IP allow list and your address is not on it.
organisation_closed403The organisation is closed.
insufficient_scope403The token lacks the scope the endpoint needs, or the action is not allowed.
project_not_allowed403The token is limited to some projects and the endpoint covers the whole organisation.
invalid_request400A parameter or the body is not valid.
idempotency_key_required400A request needs an Idempotency-Key header.
not_found404It does not exist, or the token may not see it.
conflict409It already exists, or its state does not allow this.
quota_exceeded409A plan limit has been reached.
rate_limited429Too many requests. Wait for Retry-After.
unavailable503The API cannot check tokens right now. Retry shortly.
internal_error500Something went wrong. Quote the request id to support.
json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This token does not have the \"resource.write\" scope.",
    "request_id": "req_5c1e9a07b24d6f83a0e1c752",
    "doc_url": "https://docs.colossium.cloud/errors#insufficient_scope",
    "details": {
      "required_scope": "resource.write"
    }
  }
}

Handling errors well

StatusMeaningYour code should
400The request is wrongNot retry. Fix the request. Show details.problems to a developer.
401The token is not usableNot retry. Alert someone: the token needs replacing. Do not keep trying: that fills your rate limit and your logs.
403The token is valid but not allowedNot retry. Check the scope, the project and the address.
404It is not there, or not yoursNot retry. Treat "not yours" and "not there" as the same.
409A conflict or a plan limitNot retry blindly. Read the code.
429Slow downWait for Retry-After.
5xxOur side, or temporaryRetry with backoff if it is safe to. Quote the request id if it persists.
Security

Error messages never include a token, an internal name or a detail about the platform. If you build your own error page, do the same: do not echo what a caller sent back into an error that others can read.

This page as MarkdownReport a problem with this pageOlympus Group Holdings, Inc.