OPDC API error code

CREDIT_CARD_INVALID

HTTP status 422

A credit card receipt names a card issuer that is not a card issuer account or is inactive, or a card that is not an active card of that issuer. 422. Nothing is written.

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

How errors work, and what to retryEvery error code