HTTP 425 - Too Early #171
pwgit-create
announced in
Status Code
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
425
The HTTP 425 status code, known as "Too Early," is a client error response indicating that the server is unwilling to process a request because it might be replayed, which poses a security risk.
This status code is specifically used in the context of early data in the TLS 1.3 protocol, where a client sends data before the secure TLS handshake is fully completed.
The server returns this code to prevent potential replay attacks, ensuring that sensitive or non-idempotent requests (like POST operations) are not processed prematurely.
The 425 status code is primarily intended for scenarios involving HTTP/2 and TLS 1.3, where early data transmission is possible but risky.
It is returned when the server does not support early data or when it determines that processing the request at that moment is unsafe.
The server expects the client to retry the request after the TLS handshake is securely established, and these retries must not be sent as early data.
Common reasons for encountering a 425 response
Other use cases
Although some developers have used it for other purposes, such as indicating a long-running process is in progress
, the official specification defines its use strictly for the security context of early data and replay protection.
It is distinct from other 4xx codes like 400 (Bad Request), 403 (Forbidden), or 429 (Too Many Requests), which address different types of client errors
Beta Was this translation helpful? Give feedback.
All reactions