425 Too Early means: The server refuses to process a request that might be replayed, specifically early data sent in TLS 1.3 0-RTT. Because 0-RTT data can be replayed by attackers, non-idempotent operations must not ride it; 425 tells the client to retry after the handshake completes. Client-error 4xx codes mean the request itself is the problem: malformed syntax, missing credentials, forbidden access, a nonexistent resource or a violated precondition. The server is telling the client what to change; retrying the identical request without a fix will reproduce the same error. In practice you will meet 425 when a client sends a post in tls 1.3 early data (0-rtt); an api rejects replayable early data for state-changing operations; a cdn or gateway enforces anti-replay policy on 0-rtt requests. On the client side, retry the request after the TLS handshake completes (in 1-RTT); browsers and libraries do this automatically when they see 425. On the server side, return 425 for any early-data request that is not safe to replay; only allow idempotent GETs in 0-RTT, and document the policy.
When 425 happens
- A client sends a POST in TLS 1.3 early data (0-RTT)
- An API rejects replayable early data for state-changing operations
- A CDN or gateway enforces anti-replay policy on 0-RTT requests
How to fix it
On the client
Retry the request after the TLS handshake completes (in 1-RTT); browsers and libraries do this automatically when they see 425.
On the server
Return 425 for any early-data request that is not safe to replay; only allow idempotent GETs in 0-RTT, and document the policy.
Should you retry?
Always retryable — resend the same request after the TLS handshake completes (no 0-RTT).
Debugging steps
When 425 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Read the error body first — well-designed APIs name the offending field or missing credential. Then diff your actual request, headers included, against the documented contract. For this code specifically, check whether the most common trigger applies to your situation: a client sends a post in tls 1.3 early data (0-rtt). Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.
Notes & gotchas
TLS 1.3 0-RTT data can be replayed by attackers, so servers must restrict early data to replay-safe requests; 425 is the standard 'retry after the handshake' signal for everything else.
Examples
HTTP/1.1 425 Too Early
Content-Type: application/json
Content-Length: 94
{
"error": "too_early",
"message": "A client sends a POST in TLS 1.3 early data (0-RTT)"
} curl -i https://api.example.com/v1/resource # observe the 425 response and its headers const res = await fetch("https://api.example.com/v1/resource");
if (res.status === 425) {
const problem = await res.json(); // read field-level details
// fix the request (credentials, payload, URL) — identical retries keep failing
throw new RequestError(problem);
} import requests
res = requests.get("https://api.example.com/v1/resource", timeout=10)
if res.status_code == 425:
problem = res.json() # field-level error details
# correct the request before retrying — identical retries keep failing
raise RequestProblem(problem) Frequently asked questions
What is TLS 1.3 0-RTT?
A resumption feature letting clients send data in the first flight, saving a round trip — but that data can be replayed, so servers must restrict it to replay-safe requests.
Is 425 retryable?
Yes, always: retry the same request in normal (1-RTT) data after the handshake. The refusal is about timing, not about the request itself.
Are 4xx errors always the client's fault?
By contract yes — the server asserts the request must change. In practice servers sometimes misuse 4xx for their own problems (e.g. 400 for internal validation bugs), so read the error body before blaming your client code.
Should I retry 4xx responses automatically?
Generally no: the server says the request must change. Exceptions are 408 (fresh connection), 425 (after handshake) and 429 (after Retry-After). Blind retries of 400/401/403/404 just burn quota.
Try the JSON Validator
Check JSON syntax and locate errors by line and column.