The server requires this request to be conditional — to carry If-Match or similar — so that a write cannot overwrite a change it has not seen.
Defined in RFC 6585 §3 — 428 Precondition Required · MDN reference
APIs that enforce optimistic concurrency on every write: configuration stores, CMS records, collaborative documents — anywhere a lost update is expensive.
Send a PUT with no If-Match and expect 428; send it with a stale ETag and expect 412. Testing both proves the server enforces optimistic concurrency rather than merely supporting it.
Read the resource first, take its ETag, and send it back in If-Match on the write. Do not invent an ETag or send If-Match: * just to get past the check — that disables the protection it exists for.
1 endpoint in this playground answers with 428. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/faults/v1/status/{code} — Returned on request (Fault Injection API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated