Dispra Docs

Errors

Errors answer {"error": {"code", "message", "request_id"}} with an HTTP status. Check code in your code: it is stable. message is for people and may change. Quote request_id when you contact support. Besides the codes of each endpoint, any request can get 401 invalid_key (no key, or an unknown, revoked or regenerated one), 403 key_creator_gone, 403 key_access_denied (above the key's access or its creator's role), 403 origin_not_allowed, 404 not_available_with_key, 413 payload_too_large, 429 rate_limited, and on writes 400 idempotency_key_required, 409 request_in_progress and 422 idempotency_key_reused.

Error response

Error response · 422

{
  "error": {
    "code": "region_not_eligible",
    "message": "A service with a volume runs in one region.",
    "request_id": "req_7f3a9c21d84be056"
  }
}

Error codes

StatusCodeMeaningRetry
400confirm_requiredSend confirm: true.no
400invalid_configThe file is not valid. The message names every problem, with its key.no
400invalid_domainThat isn't a domain you can add.no
400invalid_limitlimit is 1 to 750.no
400invalid_rangerange is 1h, 3h, 24h, 7d or 30d.no
400invalid_requestA field is missing or not valid. The message names it.no
400invalid_tailtail is 0 to 750.no
400invalid_urlThe URL is not https, or resolves to a private address.no
404not_foundNo such object in the key's project (or environment).no
409account_frozenThe workspace is out of credits: add credits on the dashboard to create, change or deploy.no
409apply_failedA step was refused. The changes before it were applied.no
409console_unavailableShells aren't available in this region yet.no
409deployment_finishedIt has already finished.no
409domain_connect_unsupportedThe provider doesn't support Domain Connect.no
409domain_takenAnother service uses that domain.no
409invalid_stateThe service is stopped or being deleted.no
409name_takenThe environment already has a group with that name.no
409not_runningThe service has no running replica.no
409not_startableDispra stopped this service: it starts again once that is resolved.no
409plan_staleThe environment changed since the plan: the error carries the new plan.no
409production_environmentThe production environment can't be deleted.no
409region_existsThe service already runs there.no
409region_lastThe service runs only there.no
409service_replicas_volumeA service with a volume runs one replica.no
409stale_generationSomeone changed it since you read it: read it again and retry.no
409variable_in_useA service still uses it.no
409volume_attachedA service uses it: detach it first.no
409volume_name_takenThe environment has a volume with that name.no
409volume_not_eligibleThe service runs more than one replica or region.no
422region_not_eligibleA service with a volume runs in one region.no
429rate_limitedChecked less than 10 seconds ago.yes
503logs_unavailableLogs can't be read right now. Retry shortly.yes

Retries

Retry 429, 502, 503 and 504 with exponential backoff, waiting at least Retry-After seconds, and always with the same Idempotency-Key so a retried write is never done twice. Don't retry other 4xx errors unchanged: fix the request first.