HTTP Status Code Generator
Generates a random real HTTP status code, drawn from the IANA registry, along with its standard meaning — useful for teaching, testing or documentation.
What you'll get
This generator draws from a hand-checked list of 14 entries. Here is a spread of 6 of them, so you can see the style before you generate:
- 200 OK — the request succeeded
- 301 Moved Permanently — the resource has a new permanent URL
- 400 Bad Request — the request was malformed
- 404 Not Found — the resource doesn't exist
- 418 I'm a Teapot — an April Fools' joke status code from RFC 2324
- 500 Internal Server Error — something went wrong on the server
A fixed sample of the list, not a live draw — your own results are picked at random from all 14, without repeating until the list runs out. IANA HTTP Status Code Registry / RFC 9110 (public/factual technical standard). Last reviewed 2026-08-17.
How to use this tool
- Press generate for a status code.
- Generate again for another one.
Understanding the controls
- Seed (optional)
- A word here brings back the same code and meaning out of the fourteen on the list, and goes on doing so while the generator is unchanged. Leave it blank for a fresh draw on each press. Drawing with a word adds it to the page address, so somebody opening the copied link finds the word in the box and gets the same code on pressing the button.
Common use cases
- Teaching HTTP concepts
- API/error-handling test scenarios
- Documentation examples
Limitations and good to know
- Drawn from a curated set of fourteen common codes, not the full IANA registry — which lists more than sixty across the 1xx, 2xx, 3xx, 4xx and 5xx classes. Rarer codes like 1xx informational responses are not included here.
Practical tips
- Check your client distinguishes 4xx from 5xx. Retrying a 400 forever is a common and expensive bug.
- Test 429 and 503 specifically; both mean slow down, and both are frequently handled as generic failures.
Entries are chosen with your browser's cryptographic random number generator, so every entry on the list is equally likely. How Generate Random works.
Related generators
- Random Port Number GeneratorA port number between 1024 and 65535, above the range reserved for standard services.
- Semantic Version GeneratorA semantic-version-shaped string (MAJOR.MINOR.PATCH).
- API Rate Limit Example GeneratorA realistic example API rate-limit response or header set.
- Cron Schedule CalculatorReads a cron expression and lists the next runs, including the day-of-month and day-of-week rule people misread.