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?
| Range | Meaning | Retry? |
|---|---|---|
| 2xx | Success | No need |
| 3xx | Redirect or not modified | Follow the redirect |
| 4xx (except 408, 429) | Your request is wrong | No, fix it first |
| 408, 429 | Timeout or too many requests | Yes, after a wait |
| 5xx | Server-side failure | Yes, with backoff |
2xx success
| Code | Meaning | Automation note |
|---|---|---|
| 200 OK | Request succeeded | Read the body; some APIs return errors inside a 200 |
| 201 Created | Record created | Save the new ID for later steps |
| 202 Accepted | Queued for processing | The work is not done yet; poll or wait for a webhook |
| 204 No Content | Succeeded with no body | Mapping fields from it will be blank, which is expected |
3xx redirects
| Code | Meaning | Automation note |
|---|---|---|
| 301 / 308 | Moved permanently | Update the URL in your step |
| 302 / 307 | Temporary redirect | Most HTTP steps follow it automatically |
| 304 Not Modified | Nothing changed since your ETag | Skip processing; see polling with ETags |
4xx request errors
| Code | Meaning | Fix |
|---|---|---|
| 400 Bad Request | Malformed request or invalid field | Check JSON, required fields, and types; see 400 errors |
| 401 Unauthorized | Missing or invalid credentials | Reconnect, refresh the token, check the header format; see 401 errors |
| 403 Forbidden | Authenticated but not allowed | Add scopes or permissions; see 403 errors |
| 404 Not Found | Wrong URL, ID, or environment | Check the endpoint path, record ID, and sandbox vs production |
| 405 Method Not Allowed | Wrong HTTP method | Use GET, POST, PUT, PATCH, or DELETE as documented |
| 408 Request Timeout | The server waited too long for the request | Retry; send smaller requests |
| 409 Conflict | Duplicate or version conflict | Search before create; use upserts; see idempotency |
| 410 Gone | Resource or API version removed | Move to the current API version |
| 413 Payload Too Large | Body or file too big | Send smaller batches or upload files separately |
| 415 Unsupported Media Type | Wrong Content-Type | Set Content-Type: application/json (or what the API expects) |
| 422 Unprocessable | Valid JSON, invalid values | Check formats, enums, and required fields |
| 429 Too Many Requests | Rate limit hit | Honor Retry-After, slow down, batch; see 429 errors |
5xx server errors
| Code | Meaning | Fix |
|---|---|---|
| 500 Internal Server Error | The server crashed handling the request | Retry; if it repeats, the payload may trigger a vendor bug |
| 502 Bad Gateway | A proxy got a bad response upstream | Retry with backoff |
| 503 Service Unavailable | Overloaded or down for maintenance | Retry later; check the status page |
| 504 Gateway Timeout | The upstream server took too long | Retry; reduce work per request; see timeouts |
Where to find the code
- Zapier: open the run in Zap History and read the step's error and response. For custom requests use API by Zapier or Webhooks by Zapier; see HTTP request timeout errors.
- Make: open the execution, click the failed module, and read the status and body; add error handlers; see Make error handling.
- Code: log the status, headers, and body together; the body usually explains the error.
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.
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.