OPDC API error code

JOURNAL_NOT_VOIDABLE

HTTP status 422

The journal cannot be voided: it has cleared the bank, its status moved no balance, or it has no lines. 422.

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

How errors work, and what to retryEvery error code