GenerateRandomSearch

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

  1. Press generate for a status code.
  2. 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.