HTTP 425 — Too Early

The server is unwilling to risk processing a request that might be replayed

When to use it

Use status 425 when this is the correct HTTP response semantic: The server is unwilling to risk processing a request that might be replayed

Request and response example

GET /protected-resource HTTP/1.1
Host: api.example.com

HTTP/1.1 425 Too Early
Content-Type: application/json

{"error":"Request cannot be completed"}

Related status codes

400, 401, 402, 403

References

MDN · RFC 9110