@http · HTTP status codes, explained HTTP/1.1 428 Precondition Required ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error This request must be conditional. WHAT IT MEANS ──────────────────────────────────────────────────────────── The server requires this request to be conditional, usually with If-Match. It stops clients from overwriting changes they never saw. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → A PUT, PATCH or DELETE without If-Match to an API that requires one. HOW TO FIX IT ──────────────────────────────────────────────────────────── → GET the resource, read its ETag, and send it back in If-Match. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 428 Precondition Required Content-Type: application/json  {"error": "send If-Match with the resource's ETag"} related 412 Precondition Failed   409 Conflict   304 Not Modified spec RFC 6585 https://www.rfc-editor.org/rfc/rfc6585 web https://athttp.com/428 ← curl athttp.com/426 curl athttp.com/429 →