428

HTTP 428 Precondition Required

4xx Client Error

  1. Home
  2. > HTTP Status Codes >
  3. > 4xx >
  4. 428
4xx Client Error RFC 6585, Section 3

What is HTTP 428 Precondition Required?

The 428 (Precondition Required) status code indicates that the origin server requires the request to be conditional. This helps prevent the "lost update" problem where a client overwrites another client's changes without being aware of them. Clients should include a precondition header like If-Match or If-Unmodified-Since.

Common Use Cases

  • Preventing lost updates in collaborative editing
  • Ensuring atomic operations on shared resources
Help2Code Logo
Menu