OPDC API error code

ATTACHMENT_CORRUPT

HTTP status 502

The file's size or SHA-256 did not match on its way between this API and the on-premise service. 502, retryable. Nothing is written.

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

How errors work, and what to retryEvery error code