Pass the menu and read the page

SignupFolio

3 retry mistakes to avoid on a signup API write

The three retry mistakes on a signup API write are retrying a 429 like a timeout, re-sending a non-idempotent write on a 5xx, and retrying a 403 without reading the message. Each one quietly breaks signup forms, and each has a plain fix.

  • 429: read the Retry-After header, wait, then send once; skip retry entirely on 429 with public_api_request_blocked.
  • 5xx: do not retry a non-idempotent signup POST by default; add idempotency protection first, and run the write-503 check before anything else on a 503.
  • 403: read the error body to separate a permission failure from a workspace block limit; check the body before deciding whether a retry makes sense.
  • Decision tree: read the status, read the body, match the pair to a rule (wait and retry, check then retry, or do not retry), and log the decision.
  • Build order: start with the 429 path, then add idempotency to the signup write, then build the 403 body-reading branch.

Why a signup API write error is different from a read

Your form posts a new account to an API. The write lands, or it fails. If it fails and your code blindly retries, you can create duplicate records, trip a rate limit, or leave the user staring at a spinner with no answer.

A signup write is not a read. A read repeats harmlessly. A write that half-succeeded may already exist on the far side. Retrying it without checking is the first habit to break.

Stripe makes the general posture clear: treat published limits as maximums and avoid unnecessary load, because rate limiting exists to keep the API stable and prevent abuse. See Stripe Documentation on rate limits.

This post walks through the three common retry mistakes on signup writes, what each one costs you, and what to do instead.

Mistake one: retrying a 429 like a timeout

A 429 Too Many Requests response is the API telling you that you are going too fast. The 429 signals you are over the allowed rate, and waiting is what clears it. Repeating the request immediately makes the problem worse.

Notion's request-limits guidance says to retry 429 and 529 responses, except a 429 with public_api_request_blocked, and to wait for Retry-After before sending again. See Notion Developers on request limits.

The Retry-After header is your instruction. It tells you how long to pause. Your client should read that value, hold the queue, and then send the write again. Ignoring the header and hammering the endpoint is the classic mistake.

What happens when you ignore it: the API keeps answering with 429. Your form times out on the user's side. Support gets a ticket saying "signup is broken," and your engineers spend an afternoon chasing a bug that is really a self-inflicted traffic problem.

A practical fix looks like this:

  • Read the 429 status.
  • Read the Retry-After header.
  • Park the request in a delay queue for that duration.
  • Send it once when the wait is up.

Stripe's own guidance on handling limiting gracefully is the reference point for building that path in a Stripe-backed signup flow. See Stripe Documentation on rate limits.

There is a second 429 variant you should know. Notion documents a 429 with public_api_request_blocked as a case where you should not retry at all. Read the error body before you decide to send again.

The status codes that decide your retry policy

Not every failure status deserves the same response. Notion's request-limits page lays out a workable split; confirm each status rule against the docs of the API you actually use.

Here is the short version, side by side:

ResponseRetry?Extra condition
429, 529YesWait for Retry-After; skip retry for 429 with public_api_request_blocked
500, 502, 503, 504Only if the request is idempotent (GET, DELETE)Unless your app has its own idempotency protection
503 on a writeNeeds an extra check firstSee the write-503 check in Notion's docs
403Check the error message before retryingSeparate a permission failure from a workspace block limit

That table is the map. The rest of this post is about the three mistakes people make when they walk it.

Mistake two: re-sending a non-idempotent write on a 5xx

This is the expensive one.

Notion's guidance is explicit: retry 500, 502, 503, and 504 responses only when the request is idempotent, such as GET or DELETE, unless your application has its own idempotency protection. See Notion Developers on request limits.

A signup POST is not idempotent. Sending it twice can create two accounts, two welcome emails, and two rows in your billing table. The user sees one success screen. Your data team sees a duplicate.

There is a second layer on write failures specifically. Notion notes that a write that returns 503 needs an extra check first, before you decide what to do. The same page points at a dedicated write-503 check for the details.

So the safe sequence for a signup write that hits a 5xx is:

  • Do not retry by default.
  • Check whether your application already protects against duplicate writes.
  • If it does not, add protection before you add retries.
  • For a 503 specifically, run the write-503 check before anything else.

What does idempotency protection look like in practice? You generate a key on the client when the form is opened or first submitted. You send that key with the write. The server stores the key with the record. If the same key arrives again, the server returns the original result instead of creating a new record. With that in place, retries become safe, because a repeat is a no-op.

Mistake three: retrying a 403 without reading the message

A 403 Forbidden looks like a permission wall, and sometimes it is. But Notion's docs warn that a 403 can mean a permission failure or a workspace block limit, and you should check the error message before retrying. See Notion Developers on request limits.

The mistake is treating all 403s as the same. If it is a permission failure, retrying changes nothing. If it is a block limit, check the message and the limit's timing before deciding whether to retry.

When you get a 403 on a signup write, do this:

  • Read the error body, not just the status.
  • If it names a permission problem, fix permissions or surface a clear message to the user.
  • If it names a limit, treat it as capacity work, not as something to retry.

Retrying a 403 in a loop is especially bad because it adds requests without addressing the cause of the failure. Every wasted request is one you could have spent on a signup that would have succeeded.

How the three mistakes show up in a real signup flow

Picture a growth lead watching a signup form during a campaign launch. The form posts to an API. The API is under load. The first mistake, retrying a 429 without waiting for Retry-After, turns a short pause into a sustained burst. The second, re-sending a non-idempotent write after a 500, turns one user into two records. The third, retrying a 403 loop, burns budget while the real problem sits untouched in the error body.

All three share a root cause. The client treats every failure as "try again," instead of asking what kind of failure it is.

The fix is a small decision tree in your retry layer:

  • Read the status code.
  • Read the response body.
  • Match the pair to a rule: wait and retry, check then retry, or do not retry.
  • Log the decision, so you can see which branch fired during an incident.

That tree is worth writing down before your next launch, not during it.

Building the wait into your client

Waiting is not glamorous, but it is the core of correct 429 handling. Notion's guidance is to wait for Retry-After, and Stripe's rate-limits page points you at its handling-limiting-gracefully advice for the same purpose.

A few practical notes on implementation:

  • Honour Retry-After as given. Do not shorten it.
  • Serialize retries through a single queue so parallel form submissions do not each fire their own burst.
  • Cap how many times a single request retries before you surface an error to the user.
  • Give the user a real message when the wait exceeds what a form can reasonably hold.

The cap matters. An unbounded retry loop is how a rate limit turns into an outage on your side.

Making writes safe before you make them fast

Idempotency protection is the precondition for retrying 5xx failures on signup writes. Notion's guidance makes that explicit by scoping 5xx retries to idempotent requests unless your application already has its own protection.

If you do not have that protection yet, build it first. Order of operations matters here:

  • Add an idempotency key to the signup write.
  • Verify the server dedupes on that key.
  • Only then allow retries on 5xx responses.
  • Keep the 429 wait path separate, since that path does not depend on idempotency.

Once both are in place, your retry layer can be simple and boring, which is exactly what you want at launch time.

A checklist before your next signup launch

Work through this the day before:

  • 429 path: reads Retry-After, waits, retries once, skips retry on public_api_request_blocked.
  • 5xx path: retries 5xx only for idempotent requests or after idempotency protection is in place on the signup write, runs the write-503 check first, never blindly re-sends the signup POST.
  • 403 path: reads the error body, separates permission failures from block limits, does not loop.
  • Idempotency: client sends a key, server dedupes, repeats become no-ops.
  • Observability: every retry decision is logged with status, body, and branch taken.
  • User-facing messages: a clear, honest message when the wait is too long or the write cannot be safely repeated.

If any line above is blank in your codebase, that is your pre-launch work.

What the sources do not settle

The sources above give clear rules for waiting on 429s, scoping 5xx retries, and reading 403 bodies. They do not state how long a signup form should hold a user before showing an error, since that depends on your own product's tolerance. Ask your own product and support leads where that line sits for your audience.

Related guides: Signup api errors: 4 provider checks before retry · API payload size limits: 3 checks before signup sync · API rate limits: 3 models for signup syncs compared.

Frequently asked questions

Should I retry a 429 immediately if the wait feels too long for the form?

No. The header is the instruction, and Stripe's rate-limits page tells you to treat published limits as maximums and avoid unnecessary load. If the wait is too long for a good user experience, show the user a clear message and let them try again later, rather than shortening the wait and sending early.

My signup write returned a 503. Can I just try once more?

Notion's request-limits guidance says a write that returns 503 needs an extra check first, and it points at a dedicated write-503 check for the details. Do that check before you decide anything, and treat the general 5xx rule as the fallback.

What if the 403 body says nothing useful?

Notion's guidance is to check the error message before retrying, because a 403 can mean a permission failure or a workspace block limit. If the body is unhelpful, treat the request as non-retryable and route it to a human with the full response attached.

Does idempotency protection replace the 429 wait?

No. They solve different problems. Idempotency makes repeat writes safe; the Retry-After wait keeps you inside the rate limit. Notion's guidance covers both, scoping 5xx retries to idempotent requests while separately telling you to wait for Retry-After on 429.

Where should a growth lead start if none of this exists yet?

Start with the 429 path, since it is the fastest to cause a visible outage during a launch. Then add idempotency to the signup write. Then build the 403 body-reading branch. Each step is independent and shippable on its own.

Sources and check date

Related posts

More posts