OPDC API error code

TIMECARDS_NOT_CREATED

HTTP status 422

Create Timecards was refused before anything was written. 422.

No daily payroll in the range, a quarter outside 1 to 4, a check date too far in the past, no equipment repair account in the ledger setup, a department required and not found, or equipment hours that would make its lifetime hours negative. The detail says which, in Sage's words. Nothing is written.

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

How errors work, and what to retryEvery error code