Skip to main content

Error response format

General errors

Verification errors

Execution errors

These errors apply to the /verify/stats and /verify/consensus endpoints. Statistical and consensus Python verification requires the secure Docker sandbox. When Docker is unavailable, the API returns 503 instead of falling back to in-process execution.

Security errors

Agent errors

Agent context errors

New in v5.0.0

Agent action registration errors

New in v5.1.1

Agent loop detection errors

New in v5.0.0

Agent state errors

New in v5.1.0
These errors relate to the progress-aware doom loop guard (LOOP-004). They are returned when the pre_action_state_hash or state_source context fields are invalid.

Attestation errors

Exception hierarchy

The QWED SDK and server use a structured exception hierarchy that provides actionable error messages with suggestions and documentation links. All exceptions extend the base QWEDError class.

Base exception

All QWED exceptions include these fields:

DSL and parsing exceptions

Verification exceptions

Configuration and API exceptions

Handling errors

Python

Catching specific exceptions

TypeScript