OPDC API error code

LEDGER_ACCOUNT_UNKNOWN

HTTP status 422

An account number that does not exist in the chart of accounts. 422.

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

How errors work, and what to retryEvery error code