Mavion SEO Insights errors
Every error code the Mavion SEO Insights returns — sync and batch — with retryability and what to do about each.
This page lists the error codes specific to the Mavion SEO Insights.
The platform-wide contract — gateway rejections (401, 402, 429),
and general retry guidance — is the same for every Dataloom API and is
documented in errors.
The API uses two error envelopes:
Single-URL endpoint — the Website Insights-style envelope, with the request context stamped in:
{
"status": "error",
"error": {
"code": "INVALID_DOMAIN",
"message": "The provided domain string cannot be parsed into a valid fully qualified domain name.",
"target": "url",
"rejected_value": "reddit .com",
"timestamp": "2026-10-27T12:00:00Z"
}
}| Field | Description |
|---|---|
code | Stable identifier — branch on this, never on message text. |
message | Human-readable reason for this specific failure. |
target | Which input failed — always "url" on this API. |
rejected_value | The input as received (whitespace included). |
timestamp | UTC when the error was produced, YYYY-MM-DDTHH:MM:SSZ. |
Batch endpoints — return a bare body with a retryable flag:
{
"error": {
"code": "BATCH_NOT_FOUND",
"message": "No batch found with id batch_9f2c...",
"retryable": false
}
}retryable: true means retrying the same request later may succeed
(transient upstream failure); retryable: false means the request
itself is bad and will fail again unchanged.
Single-URL endpoint
| Status | Code | Meaning | What to do |
|---|---|---|---|
400 | MISSING_PARAMETER | The url query parameter is absent or empty. | Add ?url=domain. |
400 | INVALID_DOMAIN | Not a parseable domain/URL, over 2,048 characters — or the domain has no data in the index. | Check spelling and TLD; treat as "no backlink data" when the domain is real. |
502 | RELAY_SERVICE_ERROR | The egress-relay path failed transiently. | Retry; back off if it repeats. |
503 | CONNECTION_ERROR | Could not connect to the upstream service. | Retry; the failure may be transient. |
504 | TIMEOUT_ERROR | The upstream fetch timed out. | Retry with a longer client timeout. |
500 | INTERNAL_SERVER_ERROR | Unexpected failure during the fetch. | Retry; the failure may be transient. |
4xx rejections mean the input itself is bad — no retry helps until
the request is fixed. The 5xx rows are transient: retrying the same
request is safe.
Batch endpoints
Returned by the /analysis endpoints:
| HTTP | Code | Meaning | What to do |
|---|---|---|---|
400 | BATCH_TOO_LARGE | More than 10,000 items in urls. | Split the submission. |
400 | INVALID_REQUEST | Malformed body or an unknown dataset value (the message names the offending field). | Fix the field the message points at. |
400 | INVALID_CALLBACK_URL | The callback_url is not a plain HTTPS URL or targets a private/loopback address — see webhooks. | Send a public HTTPS URL. |
404 | BATCH_NOT_FOUND | Unknown batch id. | Check the id you stored from the submit response. |
409 | IDEMPOTENCY_CONFLICT | An Idempotency-Key was reused with a different request body. | Use a fresh key for the new body. |
409 | BATCH_NOT_FINISHED | /download called while the batch is still running. | Poll /status first, or read partial pages from /results. |
410 | BATCH_EXPIRED | The batch passed its expires_at (7 days after completion). | The results are gone — resubmit if you still need them. |
Item-level errors (batch result rows)
Inside a batch, a failed item never fails the batch — it becomes a
result row with error set and data: null:
{
"url": "not-a-domain",
"index": 2,
"duplicate_indexes": [],
"attempts": 0,
"data": null,
"error": {
"code": "INVALID_DOMAIN",
"message": "The submitted item is not a valid domain or URL.",
"retryable": false
}
}| Code | Retryable | Meaning |
|---|---|---|
INVALID_DOMAIN | no | Not a valid domain — or real but absent from the index. Present at submit time as an immediate row; costs nothing. |
TIMEOUT_ERROR | yes | The fetch timed out transiently. |
CONNECTION_ERROR | yes | Could not connect to the upstream service. |
RELAY_SERVICE_ERROR | yes | The egress-relay path failed transiently. |
INTERNAL_SERVER_ERROR | yes | Unexpected upstream failure. |
Rows written by batches submitted before 2026-10-27 may carry
INVALID_URL instead of INVALID_DOMAIN — treat them identically.
How to handle failures per batch:
- The batch's own status tells you which case you are in:
completed(no failures),partial(some), orfailed(all). - For
retryable: truerows, collect theirurlvalues and resubmit them as a new batch later — old batches are immutable. retryable: falserows are final; fix or drop those items.
HTTP status summary
| Status | When |
|---|---|
200 | Success — single-URL lookup, or a batch call where wait caught the finish. |
202 | Batch accepted — not finished yet. |
400 | Validation failure (see tables above). |
404 | Unknown batch id. |
409 | Idempotency conflict, or download before the batch finished. |
410 | The batch expired. |
500 / 502 / 503 / 504 | Upstream fetch failures on the single-URL endpoint — retry. |
401 / 402 / 429 | Gateway-level — see errors. |
Dataloom Docs