REST (HTTP)
Unless an endpoint documents otherwise, expect JSON error bodies on failure. The precise schema is defined per response in openapi.json (4xx / 5xx entries and components.schemas).
Common status codes
Parsing errors in clients
- Read HTTP status first.
- Parse the response body if present (often an object with
message,code, or nestederrorfields — confirm against OpenAPI). - Log request id or trace headers if the API exposes them (names vary by deployment).
WebSocket application errors
The AsyncAPI contract includes aServerMessage::Error variant: a JSON text frame shaped like an object with an Error string field carrying a human-readable message.
Example shape (conceptual):
Where to debug quickly
- REST: Node Swagger UI and Indexer Swagger UI for raw responses.
- Schemas: live OpenAPI, Indexer OpenAPI, and AsyncAPI.