# 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.

Canonical: https://scaplet.com/errors/http/428

Guide Error · HTTP status codes

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

428 4xx · Client error

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](#what-a-428-means-and-who-causes-it)
2. [How to get past a 428 as a visitor](#how-to-get-past-a-428-as-a-visitor)
3. [How to find and fix it as a developer](#how-to-find-and-fix-it-as-a-developer)
4. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F428%20(%22428%20Precondition%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F428%20(%22428%20Precondition%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F428%20(%22428%20Precondition%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F428%20(%22428%20Precondition%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_428 versus the codes next to it

## What a 428 means and who causes it

RFC 6585 defines it: "The 428 [status code](/glossary/http-status-codes) indicates that the origin server requires the request to be conditional." It adds: "Its typical use is to avoid the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict. By requiring requests to be conditional, the server can assure that clients are working with the correct copies."

Code

### 428 Precondition Required

Use it when

The request has no precondition header and the server requires one

Code

### 412 Precondition Failed

Use it when

A precondition header was sent and evaluated to false

Code

### 409 Conflict

Use it when

The request conflicts with the resource's current state

The server's API rule triggers it, and the client has to comply. MDN says "typically, a 428 response means that a required precondition header such as If-Match is missing". When a precondition header is present but does not match the server's state, the answer is [412 Precondition Failed](/errors/http/412) instead. RFC 6585 says responses with 428 "MUST NOT be stored by a cache".

_02_Explained

## 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.

_03_How 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](/glossary/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"'.

_04_Explained

## 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](/seo-issues/4xx-errors) and Google's documentation on how HTTP status codes affect its crawlers. Related: [409 Conflict](/errors/http/409) and [422 Unprocessable Content](/errors/http/422).

Questions

## Asked a lot.

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

_01_ What does error 428 mean?

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

_02_ How 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.

_03_ What 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.

_04_ Can 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. 01 [RFC 6585: Additional HTTP Status Codes, Section 3](https://www.rfc-editor.org/rfc/rfc6585.html) rfc-editor.org · checked 2026-10-25
2. 02 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
3. 03 [MDN: 428 Precondition Required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/428) developer.mozilla.org · checked 2026-10-25
4. 04 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes) iana.org · checked 2026-10-25
5. 05 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn HTTP 409 Conflict HTTP status codes](/errors/http/409) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next HTTP 412 Precondition Failed HTTP status codes](/errors/http/412) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[429 Too Many Requests on Cloudflare](/errors/http/429/cloudflare)

More in HTTP status codes
[413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426) [428 Precondition Required](/errors/http/428) [429 Too Many Requests](/errors/http/429) [451 Unavailable For Legal Reasons](/errors/http/451) [502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [ETag](/glossary/etag)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
