plain/devtools home

HTTP 420 status code

420 is not an official HTTP status code; the IANA registry lists it as unassigned. You see it when a server or API invents it, most famously the old Twitter API, where it meant "Enhance Your Calm": you were rate limited.

Last reviewed 2026-11-04.

http-status-codessampless sample

never leaves your browser

What to do

  • Treat it as a client error (4xx) and read the response body for the vendor's explanation.
  • If the API is rate limiting you, slow down and retry with backoff.
  • If you run the server and want to rate limit, return 429 Too Many Requests (RFC 6585) with a Retry-After header.

Other uses

Spring Framework had a deprecated METHOD_FAILURE constant with value 420, taken from an old WebDAV draft. It is not part of any current standard. A custom 420 may also come from a proxy or a hosting platform.

Unassigned does not mean invalid

Clients are told to treat an unknown status code by its class: an unrecognized 4xx acts like 400 (RFC 9110 section 15). So a 420 is handled as a generic client error.

Running this on a server

If you run an API that needs rate limiting, the hosting guide compares places to run it.

Frequently asked questions

Is 420 an official status code?

No. It is unassigned in the IANA HTTP Status Code Registry.

What is the standard rate limit code?

429 Too Many Requests.

Can I retry after a 420?

Usually yes after waiting, if it signals a rate limit. Check the vendor's documentation.

Sources

Related

esc
↑↓ move↵ open? all shortcuts

Keyboard shortcuts

Cmd or Ctrl shortcuts always work.
Everywhere
Everywhere
Open the command palette
CtrlK
Open the palette (outside a text field)
/
Show these shortcuts
?
Toggle light and dark theme
t
Go home
gh
Go to all tools
gt
On a tool page
On a tool page
Run the main action
Ctrl↵
Copy the output
c
Load the next sample
s
Focus the input
i
Leave a text field
Esc
Previous or next tool
[]
In the palette
In the palette
Move the selection
↑↓
Open the selected item
↵
Close
Esc