Skip to content

Errors and retries

Worker JSON APIs use this envelope for failures:

{
"error": {
"code": "entity_not_found",
"message": "Catalog entity not found",
"requestId": "request-id-when-available"
}
}

requestId is present on the generic release/catalog worker error path. Account, community, and upload handlers may return the same { error: { code, message } } shape without that field. Always branch on HTTP status first and treat unknown fields as optional.

StatusMeaningClient action
400Malformed query, cursor, route, or JSONFix the request; do not retry unchanged.
401A session is requiredSign in, then retry with credentials.
403Same-origin, verification, account, or permission check failedFix the browser/request context or show the user the required step.
404Server, release, resource, entity, view, relation, or media is absentRemove the item from the current view or refresh the registry.
409Version, idempotency, or state conflictRe-read the resource and apply the operation to the new version.
413 / 415Body or media type exceeds the contractReduce or convert the request.
422Body field or semantic validation failedFix the named field.
429Rate limit or quota reachedHonor Retry-After when present and use backoff.
500Unexpected worker failureRetry with backoff if the operation is safe.
502Upstream, release object, or provider projection failedRetry with backoff; preserve the request ID.
503Database, release, authentication, storage, or provider unavailableRetry with backoff when the operation is safe.

For idempotent public GETs, an exponential backoff is appropriate for 408, 429, and 5xx. For mutations, retry only when the endpoint defines idempotency or the operation is explicitly safe to repeat. Upload intents require Idempotency-Key; reusing the same key with different file metadata returns 409 idempotency_conflict.

The route pages list validation codes that are useful to a caller. Error codes are stable identifiers, while messages are for display and diagnostics. Unknown error codes must be handled as an opaque failure.