API Error Model¶
InfraLynx versioned endpoints use a standardized JSON error envelope.
Shape¶
{
"error": {
"code": "invalid_body",
"message": "request body failed validation",
"details": {}
},
"meta": {
"apiVersion": "v1",
"deprecated": false
}
}
Required Fields¶
error.code: stable machine-readable classificationerror.message: human-readable summarymeta.apiVersion: current API namespacemeta.deprecated: deprecation marker for the response contract
Typical Error Codes¶
invalid_jsoninvalid_queryinvalid_bodynot_foundforbiddenunauthorizedresponse_contract_violation
Guidance¶
- Clients should branch on
error.code, noterror.message. - Validation failures may include structured
details. - Server-side contract failures should be treated as platform defects, not user input problems.