HelipodDocs

Errors

Error codes of the Database API.

Errors use the shared envelope: { "success": false, "error": "...", "code": "..." }.

StatuscodeWhen
400CONFIRMATION_REQUIREDDeleting without the right confirm value
400SQL_ERRORPostgres rejected the statement, or several statements were sent; error has the message
400PLAN_NOT_AVAILABLEThe free plan can't be bought, or the plan is not for sale
400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key header has the wrong format
400INVALID_REQUEST / REQUEST_ERRORAnother business rule, error explains
401NO_API_KEY, INVALID_API_KEY, API_KEY_EXPIRED, INVALID_TOKEN, ACCOUNT_DISABLEDAuthentication failed (INVALID_TOKEN: an expired or revoked OAuth access token; ACCOUNT_DISABLED: the account is deactivated)
402INSUFFICIENT_BALANCEThe wallet can't pay for the plan
402DATABASE_LIMITThe account already has 20 databases
403SCOPE_NOT_ALLOWEDThe key was not given the Database API
403PLAN_REQUIREDCompute settings need a paid plan
404DATABASE_NOT_FOUND, PROJECT_NOT_FOUND, ENVIRONMENT_NOT_FOUND, PLAN_NOT_FOUND, NOT_FOUNDDoesn't exist, or the key can't reach it
404SQL_ERRORThe table passed to /tables/{table}/columns or /tables/{table}/rows does not exist
409ENVIRONMENT_BRANCH_MISSINGThe environment has no branch yet, see Branches
409BRANCH_HAS_CHILDRENOther branches were created from this one; error names them. Delete those first
409REQUEST_IN_PROGRESSA request with the same Idempotency-Key is still running
422PLAN_LIMITmaxCu is above what the plan allows
422VALIDATION_ERRORThe body or query does not match the schema; error names the field
428WRITE_NOT_ALLOWEDThe statement changes data; send allowWrite: true
429RATE_LIMITEDToo many requests, see Retry-After
502SQL_ERRORThe query could not be run. Retry
502DATABASE_PROVIDER_ERRORThe database service could not complete the request. Retry later
500INTERNAL_ERRORSomething went wrong on our side. Retry later