Errors

Relay API error shape and common codes.

dev · https://api.dev.relay.oprag.ai

Failed requests return JSON { "error": "Human message", "code": "SCREAMING_SNAKE" } with an appropriate HTTP status.

CodeTypical statusMeaning
UNAUTHORIZED401Missing or invalid JWT or org secret.
FORBIDDEN403Valid auth but insufficient role or revoked environment.
NOT_FOUND404Resource not in this organization.
VALIDATION_ERROR400Body or path failed schema validation (ingest handlers).
BAD_REQUEST400Body failed validation (organization handlers).
CONFLICT409Duplicate member, closed session, or idempotency in progress.
SESSION_CLOSED409Session no longer accepts events.
IDEMPOTENCY_CONFLICT409Same idempotency key still processing.
SERVICE_UNAVAILABLE503Unhandled server error.

Ready to ship?

Get started free