API
integrity_mismatch
HTTP 422. Integrity mismatch
What it means
A content_hash or file sha256 differs from the server's computation.
What to do
The server recomputed the hash from the files you sent. Recompute with the documented algorithm (see publishing) or leave content_hash out and read the server's value from the response.
Retrying
Do not retry the same request. Change it first.
Example
{
"type": "https://reuseforge.com/docs/api/errors/integrity_mismatch",
"title": "Integrity mismatch",
"status": 422,
"detail": "The content_hash does not match the files.",
"instance": "/api/v1/items/acme/invoice-extractor",
"code": "integrity_mismatch",
"request_id": "req_c4v8n2m6x1z3"
}Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.