OPDC API error code

PAYROLL_EARNING_UNSUPPORTED

HTTP status 422

An earning whose payType is outside Sage's 1-9. 422.

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

How errors work, and what to retryEvery error code