The file was gone when the on-premise service went to fetch it: a file is kept at most 30 minutes. 410. Nothing is written; send the file again with a new Idempotency-Key.
OPDC API error code
ATTACHMENT_EXPIRED
HTTP status 410
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/attachment-expired, and with X-Error-Code: ATTACHMENT_EXPIRED. Branch on the code, never on the detail text.