Every error from the etlmcp REST API is a JSON object with one field, error, holding one sentence that says what went wrong: {"error": "not found"}. The status code tells you the kind of problem: 400 means the request is wrong, 401 and 403 are about the credential, 404 means the object is not in your workspace, 409 means the pipeline cannot run right now, and 429 means you are over the rate limit and should wait the seconds in the Retry-After header. Starting a run succeeds with 202 and the run it queued.
The OpenAPI document lists these six error codes on every operation with the Error schema, so a generated client can handle them in one place. The operations are in the API reference.
The codes at a glance
| Code | What it means | What to do |
|---|---|---|
| 202 | A run was queued. The body is the run. | Poll the run by its id until it finishes. |
| 400 | A bad date, range, field, limit or parameter. | Read the error sentence, fix the request and send it again. |
| 401 | No credential, or one that is unknown, revoked or expired. | Check the Authorization header and the key. |
| 403 | The credential lacks the scope the operation needs. | Use a key that carries the run scope. |
| 404 | No such object in the credential's workspace. | Check the id and which workspace the key belongs to. |
| 409 | A run is already queued or running, or the plan does not allow the run. | Wait for the current run, or switch the pipeline back on in the app. |
| 429 | Over the rate limit. | Wait for Retry-After seconds, then retry. |
| 500 | An unexpected failure on the server. | Retry later; the body says internal error. |
202: the run is queued
Start a run answers 202, not 200, because the sync has only been queued. The body is the run object that Get a run returns: keep its id and poll it. A run that later fails still started with a 202; the failure shows on the run, not as an HTTP error. The retries page covers how etlmcp tries a failing run again.
400: the request is wrong
Starting a run with dates returns 400 when:
- you sent only one of
startandend:give both start and end, or neither for the trailing window; - the range runs backwards:
start must not be after end; - the last day is after today:
end must not be in the future; - the range is too long:
a sync can cover at most 366 days; - the range reaches further back than your plan keeps history. The sentence names the plan and its number of days; the plans page lists each one.
It also returns 400 when the pipeline's source has lost its access, this pipeline's source must be reconnected first (reconnect the account in the app, then retry), or can no longer be reached at all, this pipeline's source is no longer accessible.
A parameter that fails validation returns 400 too. The sentence starts with where the problem is, such as query.limit for a limit above what List runs accepts, or the field's name for a run-body field other than start and end, then gives the reason. A key put in the URL as api_key, access_token or token is refused with send credentials in the Authorization header, never in the URL, before the key is checked.
401: the credential is not accepted
A 401 says invalid or missing credentials and carries a WWW-Authenticate header. It covers a missing header, a header that is not Bearer <token>, an unknown or revoked key, and an expired or revoked OAuth access token. A key also stops working when the person who created it no longer reaches its workspace. Create or replace keys as described in API keys, and send them as Authorization: Bearer $ETLMCP_API_KEY.
403: the credential lacks a scope
Every key can read. Starting a run also needs the run scope; without it you get this credential cannot start runs. The scope is checked first, so a read-only key gets 403 even for a pipeline id that does not exist.
404: not in your workspace
A key acts only in the workspace it was made for. Ask it for a pipeline, run or source from another workspace or organization and you get not found, exactly as if the id did not exist, so an id never reveals whether something exists outside your reach. If an id you know is real returns 404, check which workspace your key was created in.
409: the pipeline cannot run now
A 409 means the request is well formed but the pipeline's state or your plan stops the run:
a sync is already running for this pipeline: a run of this pipeline is already queued or running. Wait for it to end.10 syncs are already queued or running: wait for one(the number is your plan's cap; Free's is shown): your organization already has as many runs started by hand queued or running as the plan allows. Scheduled syncs do not count toward it.this pipeline is paused by the plan's limits: the plan was lowered and etlmcp switched the pipeline off. Switching it back on in the app clears the pause, if the plan has room for it.- A switched-off pipeline that would put you over your plan's source, destination or workspace allowance if it ran. The sentence names the plan and the allowance.
429: too many requests
Each credential may make 120 requests a minute, REST and MCP calls counted together. Past that you get rate limit exceeded; retry later and a Retry-After header with the whole seconds left in the credential's one-minute window, at least one. The window starts with the first request after the previous window ended. Wait that long before the next call instead of retrying at once.