Cloudflare 971 and 429 errors: why they happen and how to fix them
If you automate work against an API, two errors show up again and again: rate-limit responses (like 429) and plan or permission errors. They look alarming but are usually straightforward once you know what they're telling you.
Rate limits (429 and friends)
A 429 means you're sending requests faster than the service allows. It's not a failure of your setup — it's a speed limit.
The right response is to back off and retry automatically after a short wait, rather than hammering the endpoint.
Plan and permission errors
Some errors mean the action isn't available on the current plan or token scope. Check what the token is actually allowed to do.
Use the least privilege that still does the job; over-scoped tokens are a security risk, not a convenience.
Handle it once, everywhere
Centralize retry-and-backoff so every call benefits from it, instead of sprinkling fixes per script.
Log the real response so you can tell a rate limit from a permission problem at a glance.
In short
Most API errors are the service communicating clearly: slow down, or you're not allowed to do that. Build automatic backoff and least-privilege tokens once, and these errors stop being emergencies.