APIs

HTTP Status Codes for Automation Builders: Every 2xx to 5xx Error in Zapier, Make, and APIs

Read the code, know the fix, and decide whether a retry will help.

APIsTroubleshootingHTTP

By Troy Tessalone · · 8 minutes

APIs

A practical field guide from Automation Ace.

Short answer: 2xx means it worked, 3xx means look elsewhere, 4xx means your request is wrong and retrying will not help until you fix it (except 429, which means slow down and retry later), and 5xx means the server failed, so retry with backoff. The most common automation errors are 401 (bad credentials), 403 (no permission), 404 (wrong URL or ID), 400 or 422 (bad data), 429 (rate limit), and 502, 503, or 504 (server or timeout problems).

Short answer

  • 401: reconnect or fix the API key.
  • 403: the account lacks permission or scope.
  • 404: check the URL, record ID, and environment.
  • 400 / 422: fix the payload.
  • 429: wait and retry; reduce request rate.
  • 5xx: retry with backoff; check the vendor's status page.

Retry or fix?

RangeMeaningRetry?
2xxSuccessNo need
3xxRedirect or not modifiedFollow the redirect
4xx (except 408, 429)Your request is wrongNo, fix it first
408, 429Timeout or too many requestsYes, after a wait
5xxServer-side failureYes, with backoff

2xx success

CodeMeaningAutomation note
200 OKRequest succeededRead the body; some APIs return errors inside a 200
201 CreatedRecord createdSave the new ID for later steps
202 AcceptedQueued for processingThe work is not done yet; poll or wait for a webhook
204 No ContentSucceeded with no bodyMapping fields from it will be blank, which is expected

3xx redirects

CodeMeaningAutomation note
301 / 308Moved permanentlyUpdate the URL in your step
302 / 307Temporary redirectMost HTTP steps follow it automatically
304 Not ModifiedNothing changed since your ETagSkip processing; see polling with ETags

4xx request errors

CodeMeaningFix
400 Bad RequestMalformed request or invalid fieldCheck JSON, required fields, and types; see 400 errors
401 UnauthorizedMissing or invalid credentialsReconnect, refresh the token, check the header format; see 401 errors
403 ForbiddenAuthenticated but not allowedAdd scopes or permissions; see 403 errors
404 Not FoundWrong URL, ID, or environmentCheck the endpoint path, record ID, and sandbox vs production
405 Method Not AllowedWrong HTTP methodUse GET, POST, PUT, PATCH, or DELETE as documented
408 Request TimeoutThe server waited too long for the requestRetry; send smaller requests
409 ConflictDuplicate or version conflictSearch before create; use upserts; see idempotency
410 GoneResource or API version removedMove to the current API version
413 Payload Too LargeBody or file too bigSend smaller batches or upload files separately
415 Unsupported Media TypeWrong Content-TypeSet Content-Type: application/json (or what the API expects)
422 UnprocessableValid JSON, invalid valuesCheck formats, enums, and required fields
429 Too Many RequestsRate limit hitHonor Retry-After, slow down, batch; see 429 errors

5xx server errors

CodeMeaningFix
500 Internal Server ErrorThe server crashed handling the requestRetry; if it repeats, the payload may trigger a vendor bug
502 Bad GatewayA proxy got a bad response upstreamRetry with backoff
503 Service UnavailableOverloaded or down for maintenanceRetry later; check the status page
504 Gateway TimeoutThe upstream server took too longRetry; reduce work per request; see timeouts

Where to find the code

Habits that prevent errors

  • Validate data before sending; see handling blank and null values.
  • Retry only safe, idempotent requests automatically.
  • Alert on repeated 4xx errors; they never fix themselves.

Frequently asked questions

What does a 401 error mean in an automation?

The request has missing or invalid credentials. Reconnect the app, refresh or replace the token or API key, and check the Authorization header format.

What is the difference between 401 and 403?

401 means the API does not know who you are. 403 means it knows who you are but that account or token lacks permission for this action.

Should I retry a 4xx error?

Usually not. 4xx errors mean the request is wrong, so fix it first. The exceptions are 408 timeouts and 429 rate limits, which can succeed after a wait.

What does endpoint request timed out mean?

The server or a gateway gave up waiting for a response, often a 504 or a platform timeout. Retry, send less data per request, or move long work to an asynchronous job.

Why does an API return 200 but my automation still fails?

Some APIs return errors inside a 200 response body, or return a different shape than expected. Check the body, not just the status code.

APIsTroubleshootingHTTP

Disclaimer: Product features, limits, and pricing change over time, so confirm current details in each vendor's documentation. This article may include links to apps, products, or services; some links may be affiliate links, which means Automation Ace may earn a commission at no extra cost to you.

Build Better Systems

Ready to automate with confidence?

Share your tools, process, and goals. Automation Ace can design the Zapier, AI, and automation setup that fits your business.

Start a Project →