Skip to content

Error Handling

All errors return a JSON object with an error field:

json
{
  "error": "not enough storage, please upgrade your plan"
}

Status codes

CodeMeaningCommon causes
400Bad RequestMissing or invalid parameters, unsupported content type, invalid JSON body.
401UnauthorizedMissing or invalid API key.
402Payment RequiredStorage limit exceeded — upgrade your plan or wait for monthly reset.
404Not FoundFile CID or user not found.
429Too Many RequestsGateway bandwidth limit exceeded — wait for monthly reset.
500Internal ErrorUnexpected server error — retry or contact support.