Structured errors
When a request fails validation or a business rule, the envelope carries an additionalerrors array with a per-field breakdown. Switch on each entry’s code to map the failure back to a specific input, instead of parsing the human-readable message.
The
errors array is available from version 2026-05-27.curie onwards. On
earlier versions the envelope omits it and only code, message,
requestId, and docs are returned.
The top-level
code stays the coarse HTTP class (for example BAD_REQUEST); the errors[].code values are the granular reasons you switch on.
Validation codes
These cover schema validation failures and map to the underlying validator’s issue codes.Business error codes
Beyond the validation codes above,errors[].code can carry a Nomos-specific business code:
Business error codes are available from version
2026-05-27.curie onwards. On
earlier versions these failures surface only through the top-level code and
message.