HTTP 428 — Precondition Required
The origin server requires the request to be conditional
When to use it
Use status 428 when this is the correct HTTP response semantic: The origin server requires the request to be conditional
Request and response example
GET /protected-resource HTTP/1.1
Host: api.example.com
HTTP/1.1 428 Precondition Required
Content-Type: application/json
{"error":"Request cannot be completed"}