HTTP Status Codes / 4xx HTTP Status Codes / HTTP 428

428 Precondition Required

This is an educational reference page about HTTP 428 Precondition Required. The page itself is served as 200 OK so it can be indexed as HTTP documentation.

The origin server requires the request to be conditional. Intended to prevent 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.

Specification

Registered in the IANA HTTP Status Code Registry as Precondition Required. Defined in RFC 6585, Section 3.

Header and content rules

What RFC 6585 says about a 428 response, quoted from the RFC. The 4xx class rules also apply.

The same rules are in the response obligations table and its JSON.

4xx client error – the request contains bad syntax or cannot be fulfilled


HTTP status code lookup
REST API status code chooser
cURL command generator
By Ping Now, a website/API/service uptime monitor
Data from Wikipedia