Skip to main content

Module problem_report_codes

Module problem_report_codes 

Source
Expand description

Problem-report code values emitted by VTA/VTC services. Kept in sync with the affinidi_messaging_didcomm_service::problem_report::codes taxonomy so the SDK can classify errors without depending on the server-side crate.

Constants§

BAD_REQUEST
CONFLICT
FORBIDDEN
Workspace-specific extension to the affinidi taxonomy. Distinguishes “permission denied” (caller authenticated but lacks the role / context / sender-identity) from unauthorized (auth failed). Without this, the SDK collapses both into VtaError::Auth and the CLI prints “Token may be expired” — which is misleading when the real problem is a privilege-laundering rejection or an ACL miss.
INTERNAL
NOT_FOUND
PROVISION_CONTEXT_REQUIRED
Per the canonical provision/integration/0.1 spec: emitted when the caller omits payload.context AND the maintainer cannot infer a unique target context from the relayer’s grant or its own contexts state. The problem-report body’s args carries candidates: Vec<String> so the relayer can surface the list to the operator and retry with an explicit choice.
UNAUTHORIZED