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.
Common use cases
- Teaching HTTP concepts
- API/error-handling test scenarios
- Documentation examples
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 in the common ephemeral/user-registrable range.
- 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.