uploadxDocs
Esc

    Errors

    How failed requests look, and what to do about each one.

    Shape

    Failed requests return a non-2xx status and a JSON body with a stable error code and a readable message:

    JSON
    { "error": "unauthorized", "message": "Invalid or missing API key" }

    Branch on error, never on message. Messages can change; codes do not.

    Codes

    Status error Meaning What to do
    400 bad_request The request can’t be done as sent, for example the upload would go past your storage Read message. Free space or change the request before retrying
    401 unauthorized The key is missing, unknown or disabled Check the key. Retrying will not help
    403 forbidden The key’s account isn’t allowed to do this Ask an owner or admin of the account
    422 n/a The request does not match the schema Fix the request. The body describes the invalid field
    500 internal Something failed on our side Retry with backoff

    A 422 comes from request validation and has a different body: it describes which field failed rather than carrying an error code.

    Retrying

    • Retry 500, and network failures, with exponential backoff.
    • Do not retry 400, 401, 403 or 422 unchanged: the same request will fail the same way.
    • Deleting is safe to retry: IDs that are already gone are skipped.