Webhook retry behaviour on 4xx responses

I have a webhook which returns a variety of 4xx responses for various failures - for example a 404 if the webhook doesn’t match a rule in the handler (ie the desired action doesn’t exist on my server).
This is on the assumption that 4xx codes do not elicit a retry, but I am getting conflicting information:
The developer documentation here suggests that all 4xx response codes will elicit a retry, whereas this previous community forum post suggests that only a 429 would elicit a retry.

Can anyone confirm which case is true please?

Hi @LimitlessSte,

According to HubSpot’s documentation, a 4xx response usually means a client-side error and does not trigger a retry. The only exception is a 429 (Too Many Requests) response. In that case, HubSpot will retry the webhook after a delay because 429 indicates rate limiting, not a logical error.

If your webhook returns a 404, 400, or 403 response, HubSpot treats these as client-side errors and will not retry the request. This follows standard API practices, as these errors typically indicate issues that cannot be resolved by simply trying again.

It seems that in testing our 404 errors are being retried; this is not desired behaviour and it does suggest that this documentation is true and 4xx errors are indeed retried, meaning that we will need to respond with 2xx responses.

This is disappointing, but I thought it was worth noting here so that anyone else can benefit from this experience, or point out any parameters I am missing.

Hi @LimitlessSte

Yeah, this one can be confusing.

HubSpot’s docs have said for years that only a 429 triggers a retry, but in practice you’ll sometimes see retries on other 4xx codes like 404. It’s safest to assume HubSpot may retry any non-2xx response, even if the docs suggest otherwise.

The best practice is to make your webhook handler idempotent: log the call, check if you’ve already processed that event, and return a 2xx once you’ve safely handled (or ignored) it. That way retries don’t break anything or create duplicates (Accounts Dashboard | HubSpot)

For what it’s worth, we see this a lot when teams scale up integrations. HubSpot’s retry behavior isn’t always transparent, which is why we built Stacksync with retry policies, exponential backoff, and deduplication baked in.

It means you don’t have to think about these quirks retries won’t create surprises in your system

Hope that helps clear it up.