# SHA256Mismatch

> A write with expectedSHA256 found different content than the writer started from, so nothing was written.

Source: https://nodus-platform-site.pages.dev/docs/reference/errors/sha256-mismatch/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

<!-- Code generated by tools/errgen. DO NOT EDIT. -->

**HTTP status:** 412 · **Retryable:** no

A write with expectedSHA256 found different content than the writer started from, so nothing was written.

## Message

```text
the file {path} changed: its SHA-256 does not match expectedSHA256
```

## What to do

read the file again, merge your change, and write it with the new digest as expectedSHA256

## On the wire

The response is a Kubernetes `Status` with `reason: SHA256Mismatch` and `code: 412`, plus `fix`, `docs` (this page) and `requestId`. `details.causes` lists the fields involved, when there are any. The CLI prints the fix and the request id; the Python SDK raises `nodus.errors.SHA256Mismatch`.
