428 Precondition Required

This request must be conditional.

4xx · Client error

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"}