Errors

The DASTER API error envelope, the common error codes and what your code should do for each one: retry, fix the request or stop.

Last updated

The error envelope

Management API errors look like this:

JSON
{
  "error": {
    "code": "not_found",
    "message": "The requested resource is unavailable.",
    "requestId": "…",
    "correlationId": "…"
  }
}

The message is a safe summary you can show. It never contains SQL, tokens, passwords or provider payloads. Some errors add details, for example the limit that was reached.

The Backend Cloud data API uses { "error": { "code", "message", "technical" }, "requestId" }. Show message; technical is diagnostic detail.

Common codes

HTTPCodeWhat to do
400, 413, 415validation_failureFix the fields, the body size or the content type
401unauthenticatedSign in again, or check the key
403unauthorizedYour role does not allow this, or a recent sign-in is needed
404not_foundThe resource does not exist or is outside your access
409conflictRefresh and retry with the current state
409lifecycle_conflictThe project or service is held, suspended or busy
409idempotency_conflictA key was reused with a different request; see Idempotency
423database_suspended, auth_blocked, storage_blocked, realtime_blockedDASTER suspended or blocked the service; the message gives the reason
429rate_limitedWait and retry; see Rate limits
500, 503internal_failureKeep the request ID and retry the same idempotent request
503service_not_available_in_regionThe product is not offered yet; details.service names it

Hosting codes

HTTPCodeMeaning
409app_blockedDASTER blocked the app; details.reason says why
403size_not_in_planThe plan does not allow the size
400invalid_size, invalid_instances, instances_over_size_limit, instances_not_supportedSee Sizes and scaling
400invalid_log_queryA log query value is not allowed

Hosting also refuses with operation_in_progress (a deployment is running), restart_not_supported, restart_no_image, run_in_progress and not_a_cron; some of these carry a compute: prefix.

Billing codes

Billing refusals keep their own code and status. They include insufficient_wallet_balance (402), spending_limit_exceeded (402), billing_suspended (402), billing_admin_role_required (403), payment_overdue (409), no_overdue_payment (409), crypto_topup_below_minimum (400) and aywapay_coin_unavailable (409). A billing failure on DASTER's side (5xx) stays internal_failure.

Email limits

429 email_quota_exceeded comes with details: scope (project or organization), period, kind, limit, used and resetsAt (UTC).