PixViroDocs

Errors & rate limits

Status codes, error codes, validation errors, rate limits and retries.

Error format

Errors are JSON with a message, and a machine-readable code when there is one:

{ "message": "An asset with public ID \"hero\" already exists. Pass overwrite=true to replace it.", "code": "public_id_taken" }

Validation errors (422) list problems by field:

{ "message": "The url field is required.", "errors": { "url": ["The url field is required."] } }
Status Meaning
400 Malformed request or transformation
401 Missing or invalid API key
402 Quota exhausted (quota_exceeded): see Usage
403 The key lacks a permission, or the feature isn't on your plan (plan_required)
404 Not found (also: private asset without a valid signature)
409 Conflict, e.g. public_id_taken, public_id_in_trash
413 file_too_large for your plan
415 unsupported_media_type
422 Validation failed, or invalid_image
429 Rate limit: wait for Retry-After seconds
5xx Our side; safe requests can be retried with backoff

The SDKs raise these as PixViroError / PixViroException with status, code and errors.

Rate limits

Per API key, per minute:

Free Starter Pro Business Scale
API requests 60 300 600 1,200 3,000
Uploads 30 120 300 600 1,200

Over the limit, the API answers 429 with Retry-After. Bulk imports and migrations are paced automatically and never hit these limits.

Retries and idempotency

  • GET, PUT and DELETE are safe to retry.
  • A POST that got a 429 was not processed: retry it after Retry-After.
  • A POST that failed with a network error or 5xx may or may not have been processed. For uploads, retrying with the same public_id and without overwrite is safe: a duplicate answers 409 public_id_taken.

The official SDKs follow these rules automatically.