cd /news/ai-agents/http-429-too-many-requests-explained… · home › topics › ai-agents › article
[ARTICLE · art-181784] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

HTTP 429 Too Many Requests Explained (and Why It Is Everywhere in the Age of AI Agents)

A developer explained HTTP 429 Too Many Requests and rate limiting, noting that AI agents calling APIs in loops can trigger rate limits faster than human teams and that model providers return 429 when usage tiers are exceeded. The post includes a JavaScript retry-with-backoff helper that honors the Retry-After header, and promotes a 429-themed laptop sticker.

recommendation

Wrap agent API calls in a retry helper that honors Retry-After and falls back to exponential backoff with jitter, capping retries before failing.

more in playbook: Running AI in production
by read1 min views1 publishedDec 4, 2026

Some error codes are boring. 500 means something broke. 404 means it is not there. But 429 is different. 429 is the internet politely telling you to calm down.

HTTP 429 Too Many Requests is the status code a server returns when you send more requests than it allows in a given period of time. This is called rate limiting. APIs use it to protect themselves from overload, abuse and runaway scripts, and to share capacity fairly between users.

A well behaved server often includes a Retry-After header telling you how long to wait before trying again. In other words: be right back.

In the age of AI agents, 429 became part of daily life. Agents call APIs in loops, read documentation, run tests and hit model endpoints over and over. One enthusiastic agent can trigger a rate limit faster than a whole team of humans. Model providers also return 429 when you exceed your usage tier, so even your AI assistant can get rate limited mid sentence.

async function withBackoff(fn, retries = 5) {
  for (let i = 0; i < retries; i++) {
    const res = await fn();
    if (res.status !== 429) return res;
    const wait = Number(res.headers.get('retry-after')) * 1000 || (2 ** i) * 500 + Math.random() * 250;
    await new Promise(r => setTimeout(r, wait));
  }
  throw new Error('Still rate limited');
}

What is the worst 429 story you have? Mine involves an agent, a for loop and a very long night.

We love this error so much we made it a laptop sticker: 429 Rate Limited, be right back. More dev stickers at StackForge.

── more in #ai-agents 4 stories · sorted by recency
── more on @stackforge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/http-429-too-many-re…] indexed:0 read:1min 2026-12-04 · —