Free auditStart free
GuideError · HTTP status codes

428 Precondition Required

A 428 means the server requires a conditional request, such as an If-Match header, to prevent lost updates. See how to fetch the ETag and resend your PUT or PATCH.

3 min
read
5
sources
Oct 23, 2026
updated
Scaplet Editorial Team
author
The short answer

A 428 Precondition Required error means the server only accepts this request if it is conditional, typically because an If-Match header is missing. The client caused it. Fetch the resource, read its ETag, then resend the update with an If-Match header carrying that value. The point is to prevent one client overwriting another's changes.

  1. What a 428 means and who causes it
  2. How to get past a 428 as a visitor
  3. How to find and fix it as a developer
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02Explained

How to get past a 428 as a visitor

A 428 answers a request that lacks a header the server requires, which an app or API client normally sets for you. Reload the document or record and make your change again, so the app fetches the latest version first. If it keeps failing, update the app or report the error to the service.

03How it works

How to find and fix it as a developer

Get, then update conditionally
GET /docs/my-document HTTP/1.1
Host: example.com

HTTP/1.1 200 OK
ETag: "xyzzy"

PUT /docs/my-document HTTP/1.1
Host: example.com
If-Match: "xyzzy"
Content-Type: application/json

{ ... }
A helpful 428 response (RFC 6585 example)
HTTP/1.1 428 Precondition Required
Content-Type: text/html

<html>
  <head>
    <title>Precondition Required</title>
  </head>
  <body>
    <h1>Precondition Required</h1>
    <p>This request is required to be conditional;
    try using "If-Match".</p>
  </body>
</html>
  1. 01

    Read the response body

    RFC 6585 says responses with this status "SHOULD explain how to resubmit the request successfully". Look for the header the server names.

  2. 02

    GET the resource first

    Read the ETag from the GET response.

  3. 03

    Send the validator back

    Add If-Match with that ETag to the PUT, PATCH or DELETE. RFC 9110 says If-Match is "most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent accidental overwrites when multiple user agents might be acting in parallel".

  4. 04

    Handle a 412 as a conflict

    If the ETag no longer matches, the server answers 412. Fetch the new version, merge your change and resend.

  5. 05

    Server authors: say what to send

    Return the required header in the body, as RFC 6585's example does with 'try using "If-Match"'.

04Explained

What it does to SEO

A 428 is a 4xx response. Google's documentation says it does not index URLs that return a 4xx status code and treats all 4xx errors except 429 the same way. RFC 6585 describes it for requests that modify a resource, not a plain GET for a page, so it should not affect rankings. See 4xx errors and Google's documentation on how HTTP status codes affect its crawlers. Related: 409 Conflict and 422 Unprocessable Content.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What does error 428 mean?

The server requires the request to be conditional, and the request had no precondition header, such as If-Match.

02How do I fix 428 Precondition Required?

GET the resource, take its ETag, and resend your update with an If-Match header set to that value.

03What is the difference between 428 and 412?

428 means a required precondition header is missing. 412 means a precondition header was sent and did not match the server's current state.

04Can a 428 response be cached?

No. RFC 6585 says responses with the 428 status code MUST NOT be stored by a cache.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • iana.org
  • google.com
  1. 01RFC 6585: Additional HTTP Status Codes, Section 3rfc-editor.org · checked 2026-10-25
  2. 02RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  3. 03MDN: 428 Precondition Requireddeveloper.mozilla.org · checked 2026-10-25
  4. 04IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  5. 05How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane