A line names a subcontract line that is not on the subcontract or has no line reference, or names one with no subcontract on the invoice. 422. Nothing is posted.
OPDC API error code
SUBCONTRACT_LINE_NOT_FOUND
HTTP status 422
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/subcontract-line-not-found, and with X-Error-Code: SUBCONTRACT_LINE_NOT_FOUND. Branch on the code, never on the detail text.