Errors
One envelope, stable codes, and what each one actually means.
Every failure has the same shape:
{
"error": {
"code": "url_forbidden",
"message": "That URL resolves somewhere a server-side fetch must not go",
"details": { "host": "169.254.169.254" }
}
}
Branch on code. It is stable. message is English prose for a developer reading logs and may
change; the dashboard and the tools translate the code, never the message.
| Code | HTTP | Meaning | What to do |
|---|---|---|---|
invalid_request |
400 | Body or parameter does not match the schema | Fix the request |
unauthorized |
401 | Missing, malformed or revoked credential | Check the key |
forbidden |
403 | Authenticated but not allowed — wrong role or missing scope | Check scopes |
not_found |
404 | No such row, or not yours | Both cases return 404 on purpose |
conflict |
409 | Already exists | Read before writing |
url_forbidden |
422 | Destination is not a public address, port or scheme | Do not retry |
url_unreachable |
422 | DNS, connection, timeout, redirects, or a non-2xx status | Retry with backoff |
asset_too_large |
413 | Over 64 MB | Do not retry |
unsupported_media_type |
415 | Nothing reads C2PA from this type | Do not retry |
parse_failed |
422 | The container could not be read | Usually a truncated file |
engine_unavailable |
503 | The verification engine did not answer | Retry with backoff |
rate_limited |
429 | Too many requests | Honour Retry-After |
usage_limit_exceeded |
429 | Plan quota exhausted | Retry-After is the period end |
idempotency_conflict |
409 | The key was used with a different body | Use a fresh key |
internal |
500 | Our fault | Retry once, then tell us |
What is not an error
A file with no Content Credential is a 200 with credential.status: "absent". A file whose
signature does not validate is a 200 with present_invalid. Neither is a failure of the
request: the verification succeeded and the answer is unwelcome.
Only "we could not look" is an error. Keeping that distinction is why the status enum exists.
Rate limit headers
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 41
Retry-After: 12
Present on every response, not just rejections, so you can back off before you are refused.