428 Precondition Required

HTTP 428 Precondition Required is a 4xx client error status. The server requires the request to be conditional to prevent lost updates.

428Status code
4xxClient error
NoCacheable by default
RFC 6585Defined in

Common causes

What to do

Fetch the resource, read its ETag, and send it in If-Match.

Example response

HTTP/1.1 428 Precondition Required
Content-Type: application/problem+json

{"status":428,"title":"Precondition Required"}

Returning 428 in code

Express   res.status(428).json({ … });
Flask     return jsonify(…), 428
PHP       http_response_code(428);
Go        w.WriteHeader(428)
nginx     return 428;

Other 4xx codes

Frequently asked questions

What does HTTP 428 mean?
The server requires the request to be conditional to prevent lost updates.
Is 428 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 428 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.