Clatter Labs
Console

Code Buckets

Errors

Error format, status codes and error codes.

Every error is JSON with a code to branch on and a message for people. Some errors add fields (like missing_chunks).

JSON
{ "error": { "code": "bucket_full", "message": "This upload would take the bucket past its 10 GB limit (9.81 GB used, 0.00 GB in unfinished uploads).", "used_bytes": 10533397708, "pending_bytes": 0, "limit_bytes": 10737418240 } }
StatusCodeWhat to do
400bad_requestA field is missing or invalid; the message says which
400bad_chunk, bad_chunk_sizeUse an index from 0 to chunk_count - 1 and exactly chunk_size bytes (the last chunk is the remainder)
400checksum_mismatchThe chunk changed on the way; send it again
400bad_ref, bad_pathref must be 40 hex characters; path a file path in the tree
401invalid_api_key, expired_api_key, missing_account_id, account_mismatchCheck the key and the X-Clatter-Account header
402quota_exceededThis month's free tokens are used. Contact us for more
403insufficient_scopeCreate a key with the needed permission
404not_foundThe id doesn't exist on your account (or was deleted)
409limit_reached100 projects per account, or 100 buckets per project
409project_not_emptyDelete the project's buckets first
409upload_incompleteSend the chunks in missing_chunks, then complete again
409upload_closedThe upload is already complete (or aborted)
409not_readyWait for the upload to complete
409backup_limitFree keeps 1 backup: pass "replace": true or delete it
413bucket_fullThe bucket would pass 10 GB; delete objects or use another bucket
413too_largeThe file or body is over the limit
413use_chunksOver 1 GB: download chunk by chunk
429rate_limitedWait Retry-After seconds
502storage_errorRetry; chunk operations are safe to repeat
503unavailable, storage_unavailableRetry in a moment