SeleBase
Errors
Overview · SQL console · Limits · Migrations · Errors · Examples
Errors return JSON: {"error":"code"}. Database engine messages are not echoed back.
| Code | HTTP | Meaning |
|---|---|---|
provisioning_failed | 502 | The database could not be created; nothing was kept. Retry. |
deprovisioning_failed | 502 | The database could not be deleted yet. Retry. |
unauthorized | 401 | Missing, malformed or unknown API key. |
forbidden | 403 | Your key role does not allow this call. |
not_found | 404 | No such database, or the feature is off. |
already_exists | 409 | A database with that name exists. |
database_limit_reached | 403 | Your plan allows no more databases. |
bad_name | 400 | Invalid database name. |
bad_json | 400 | Request body is not valid JSON. |
bad_params | 400 | params must be a list of strings, numbers, booleans or null (max 100). |
empty_statement | 400 | No SQL statement given. |
multiple_statements | 400 | Send one statement per request. |
statement_not_allowed | 400 | Statement type is not allowed for your key role. |
blocked_keyword | 400 | Contains a blocked keyword such as ATTACH, PRAGMA or VACUUM. |
reserved_name | 400 | Uses a reserved name (sqlite_* or _cf_*). |
statement_too_large | 400 | Statement is over the size limit. |
payload_too_large | 413 | Request body is over the size limit. |
too_many_statements | 413 | Import has too many statements. |
sql_error | 400 | The statement failed (syntax error, missing table, constraint). |
query_timeout | 408 | The statement ran past the time limit. |
quota_rows_read_exceeded | 429 | Monthly rows-read allowance is used up. |
quota_rows_written_exceeded | 429 | Monthly rows-written allowance is used up. |
storage_limit_exceeded | 413 | Database is at its size limit; only DELETE and DROP are accepted. |