OPDC API error code

DOCUMENT_CHANGED

HTTP status 412

An update whose If-Match is not the document's current version: it was changed, through this API or in Sage, after it was read. 412.

Nothing is written. Read the document again, re-apply the change, and send the update with the new version.

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

How errors work, and what to retryEvery error code