Skip to main content

Handling Errors

Every query returns a tuple instead of throwing. On failure, the first item is undefined, the second is the Error, and the third is the HTTP Response when the request reached the API.

Rate Limits

The content API (schema, list, and get) is rate limited to prevent abuse. The limits are the same on every plan.
  • Limits are approximate, because they are counted per Cloudflare location.
  • Cached responses also count toward the limit.
  • Different secret keys do not affect each other.
When you exceed a limit, the API responds with 429, a Retry-After: 60 header, and the body { "error": "rate_limited" }. The SDK does not retry automatically. Check the status and wait before trying again: