Module: Blockchain0x::APIKeyCodes

Defined in:
lib/blockchain0x/errors.rb

Overview

Stable apikey.* failure-mode catalog (sub-plan 21.3 row C-8). The backend emits these codes verbatim in the wire envelope; SDK consumers branch on them via APIKeyError#code. Splits into four groups: identity-bound, agent-flavor binding, surface-restriction, and the four 21.3-introduced workspace-flavor codes.

Constant Summary collapse

INVALID =

Identity-bound (the key itself is invalid).

'apikey.invalid'
REVOKED =
'apikey.revoked'
EXPIRED =
'apikey.expired'
AGENT_REVOKED =

Agent-flavor binding errors (sub-plan 21.1).

'apikey.agent_revoked'
AGENT_MISMATCH =
'apikey.agent_mismatch'
WORKSPACE_ENDPOINT_BLOCKED =

Surface-restriction errors.

'apikey.workspace_endpoint_blocked'
UNSUPPORTED_ENDPOINT =
'apikey.unsupported_endpoint'
NETWORK_MISMATCH =

Network + scope.

'apikey.network_mismatch'
SCOPE_INSUFFICIENT =
'apikey.scope_insufficient'
WALLET_NOT_ASSIGNED =

Workspace-flavor errors (sub-plan 21.3).

'apikey.wallet_not_assigned'
WORKSPACE_SCOPE_INSUFFICIENT =
'apikey.workspace_scope_insufficient'
ROLE_INSUFFICIENT_FOR_GRANTS =
'apikey.role_insufficient_for_grants'
NO_GRANTS_REMAINING =
'apikey.no_grants_remaining'