Developers / Tools / Error & status catalog
Error & status catalog
Diagnose request failures, separate retryable conditions and retain useful trace context safely.
Error envelopes and diagnostics
Most errors use { error: { code, message, details?, resolution_url?, trace_id } }. Vulture quarantine is an exception: HTTP 422 returns { status: quarantined, reason_code, raw_hash, trace_id } at the top level. SSE errors arrive inside the established stream and cannot change its HTTP 200 status.
Record method, route template, HTTP status, error code, trace_id, request ID and UTC time. Never record API keys, signing secrets, raw identifiers or full sensitive payloads. A gateway HTML/CORS failure may not include a Protocol API trace ID; retain safe response metadata instead.
Status and remediation
| HTTP | Code / condition | Remediation |
|---|---|---|
| 400 | invalid_request, invalid_target_type, invalid_target_hash, unsupported_hash_algorithm | Fix fields / hash format; do not retry unchanged. |
| 400 | idempotency_key_required | Supply a stable key, <=128 characters, for the logical validation request. |
| 400 | invalid_receipt_id, invalid_batch_id | Check ID and ownership; receipt IDs are not NFT token IDs. |
| 400 | invalid_limit, invalid_cursor, invalid_date, invalid_status | Fix receipt filters / mutually exclusive cursors; SSE cursor is a decimal packet ID. |
| 400 | invalid_topic | Use one of the three supported topic query values. |
| 401 | missing_api_key, invalid_api_key | Supply / rotate active key; feature routes also accept a Hub bearer session. |
| 402 | insufficient_funds | Top up, then retry deliberately. details varies by operation; not all fields are always present. |
| 403 | not_provisioned | Organization administrator must enable the service. |
| 403 | tier_required, feed_session_required | Acquire eligible subscription or start a paid topic session deliberately. |
| 404 | receipt_not_found, batch_not_found, webhook_not_found, route_not_found, unknown_topic | Check owned ID, method/path and active topic; repeated blind retries do not help. |
| 405 | method_not_allowed | Feature sessions use POST; latest and stream use GET. |
| 413 | batch_too_large | Split validation above 1,000 targets or ingestion above 500 records / 5 MB. |
| 422 | quarantined (top-level status) | Inspect reason_code; correct data / sanitization failure, not a blind retry. |
| 429 | rate_limit_exceeded | Wait Retry-After; 120 calls per fixed 60-second window per key or feature user. |
| 500 | billing_failed, internal_error | Bounded backoff; preserve validation Idempotency-Key. billing_failed says no targets were charged. |
| 500 | proof_mismatch | Stop accepting the proof; escalate trace ID instead of trusting mismatched hashes. |
| Downstream status, including 503 | ingest_rejected | Vulture forwarding preserves rejection status with this code; confirm gateway condition and retry policy. |
Retry policy
Retry network interruptions, 429 after Retry-After, and transient 5xx with bounded exponential backoff and jitter. Keep the original Idempotency-Key and identical body for validation retries. A new request needs a new key. Do not claim generic POST retry safety: session reuse is owner/topic/expiry based; webhook creation has no documented idempotency header.
After a stream interruption, reconnect using the last processed packet ID. After session.expired, stop: starting another session can charge credits. Read balance and receipts before reconciling uncertain outcomes. Never retry proof_mismatch as if a bad proof were acceptable.