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_EXPIREDAuthentication failed
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_FOUNDDoesn't exist, or the key can't reach it
409ENVIRONMENT_BRANCH_MISSINGThe environment has no branch yet, see Branches
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
502DATABASE_PROVIDER_ERRORThe database service could not complete the request. Retry later
500INTERNAL_ERRORSomething went wrong on our side. Retry later