OPDC API error code

SUBCONTRACT_NOT_FOUND

HTTP status 422

No subcontract has the number an AP invoice names. 422. Nothing is posted.

The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/subcontract-not-found, and with X-Error-Code: SUBCONTRACT_NOT_FOUND. Branch on the code, never on the detail text.

How errors work, and what to retryEvery error code