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:
{
"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
| HTTP | Code | What to do |
|---|---|---|
| 400, 413, 415 | validation_failure | Fix the fields, the body size or the content type |
| 401 | unauthenticated | Sign in again, or check the key |
| 403 | unauthorized | Your role does not allow this, or a recent sign-in is needed |
| 404 | not_found | The resource does not exist or is outside your access |
| 409 | conflict | Refresh and retry with the current state |
| 409 | lifecycle_conflict | The project or service is held, suspended or busy |
| 409 | idempotency_conflict | A key was reused with a different request; see Idempotency |
| 423 | database_suspended, auth_blocked, storage_blocked, realtime_blocked | DASTER suspended or blocked the service; the message gives the reason |
| 429 | rate_limited | Wait and retry; see Rate limits |
| 500, 503 | internal_failure | Keep the request ID and retry the same idempotent request |
| 503 | service_not_available_in_region | The product is not offered yet; details.service names it |
Hosting codes
| HTTP | Code | Meaning |
|---|---|---|
| 409 | app_blocked | DASTER blocked the app; details.reason says why |
| 403 | size_not_in_plan | The plan does not allow the size |
| 400 | invalid_size, invalid_instances, instances_over_size_limit, instances_not_supported | See Sizes and scaling |
| 400 | invalid_log_query | A 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).