HTTP 420 Status Code Is Not Standard — What to Do
HTTP 420 is unassigned in the IANA status code registry. See what RFC 9110 says about unknown 4xx codes and how to read the body and headers of a 420.
HTTP/1.1 420 is not a standard status code. The sender made the number up for its own rules, so its meaning exists only in that service's documentation and response body. The standard code it is usually compared with is 429.
[1] Check how the registry lists 420. This is the IANA status code registry XML around the 419–420 entry, unedited.
$ curl -sL https://www.iana.org/assignments/http-status-codes/http-status-codes.xml | grep -n -A3 '<value>419-420'249: <value>419-420</value>250- <description>Unassigned</description>251- </record>252- <record date="2021-10-01">[2] Confirm what a client must do with an unknown 4xx. This is the status code section of RFC 9110, verbatim.
HTTP status codes are extensible. A client is not required tounderstand the meaning of all registered status codes, though suchunderstanding is obviously desirable. However, a client MUSTunderstand the class of any status code, as indicated by the firstdigit, and treat an unrecognized status code as being equivalent tothe x00 status code of that class.So, per RFC 9110, a client treats 420 like 400: "something is wrong with the request." The number says nothing about retrying or waiting. The same RFC adds that the response message will usually contain a representation that explains the status.
[3] Read the whole response, body and headers. The meaning is there, not in the number. Use -i to see the status line and headers.
$ curl -si http://127.0.0.1:18420/plain/HTTP/1.1 420 Server: nginx/1.30.6Date: Sun, 08 Nov 2026 22:02:28 GMTContent-Type: text/plainContent-Length: 10Connection: keep-alive slow down[4] Look for a wait hint in the headers. If Retry-After is present, wait that long before retrying. Names like X-RateLimit-… or RateLimit-… differ by service; if you see them, look up their meaning in that service's docs. With no headers at all, the number alone does not tell you whether waiting helps.
[5] Find out who sent it. A proxy, gateway or WAF may sit between you and the origin, so read Server, Via, CF-RAY and the body text to see which layer produced the response. If you run the server, search your config for places that emit 420.
# nginx -T 2>/dev/null | grep -nE 'limit_req_status|return +420|=420'$ for i in 1 2 3 4 5 6; do curl -s -o /dev/null -w '%{http_code} ' http://127.0.0.1:18420/lim/; done; echo404 420 420 420 420 420 [6] Tell it apart from 429. RFC 6585 defines 429 as "the user has sent too many requests in a given amount of time (rate limiting)", says the response SHOULD explain the condition and MAY include Retry-After. 420 has no such definition.
| 420 | 429 | |
|---|---|---|
| IANA registry | 419-420 Unassigned | Too Many Requests (RFC 6585) |
| Who defines the meaning | the service that sent it | RFC 6585 |
| Client that does not know the number | treated like 400 | also treated like 400 if unknown |
| What the number tells you | nothing (only the service docs and body) | that a rate limit was hit. Wait time comes from Retry-After (optional) or the service docs; a retry is not guaranteed to succeed |
If you build the server, use 429 for rate limits. nginx limit_req rejects with 503 by default; see Change nginx limit_req 503 to 429 and Count which paths return 5xx in the access log. If you are on the receiving end of an API 429, the vendor-specific guides such as Claude Code 429 and Gemini API 429 apply.
[7] Search the sender's documentation for 420. Look up the service name plus 420 in its developer docs and changelog. If nothing turns up, contact the vendor's support with the response body and the request time. This guide did not confirm any service whose currently available official docs define 420, so do not assume a particular service's 420 is a rate limit on this page's word alone.
Analyze your Nginx log in the browser ↗ — nothing is uploaded.
Check it with the HTTP status codes tool ↗ — calculated in your browser.