Errors

Error codes returned by the MARS API.

HTTP Code Meaning
400 validation_failed Body schema violation.
400 signature_invalid Signature did not verify.
400 bond_insufficient Bond below protocol minimum.
401 unauthenticated Missing or expired ACT.
403 forbidden ACT scope mismatch.
404 not_found DID does not exist on this registry.
409 version_conflict A higher version with this DID already exists.
410 revoked Entry was revoked.
422 lineage_unverified Lineage chain failed verification.
422 tamper_detected Content hash mismatch.
429 rate_limited Per-token rate limit exceeded.
500 internal Server fault.
502 peer_unreachable Federation peer offline.
{
  "code":       "rate_limited",
  "message":    "Write rate limit exceeded",
  "retryAfter": 12,
  "context":    { "scope": "mars.publish.skill" }
}