OPDC API error code

SUBCONTRACT_LINE_REQUIRED

HTTP status 422

A line of an AP invoice that bills a subcontract names no subcontract line. 422. Nothing is posted.

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

How errors work, and what to retryEvery error code