How many HTTP Status Codes are there?

Aaron A.
May 2, 2021

--

Here’s what I found.

Photo by Thomas Jensen

Count

97.

Entire lit: https://github.com/aa-ag/counting_stuff/blob/main/http_status.txt

Definitions

HTTP: The Hypertext Transfer Protocol is an application layer protocol for distributed, collaborative, hypermedia information systems.¹

(HTTP) Status Codes: are issued by a server in response to a client’s request made to the server. It includes codes from IETF Request for Comments (RFCs), other specifications, and some additional codes used in some common applications of the HTTP. The first digit of the status code specifies one of five standard classes of responses. The message phrases shown are typical, but any human-readable alternative may be provided. Unless otherwise stated, the status code is part of the HTTP/1.1 standard (RFC 7231).²

Methodology

A little Python and a lot of curiosity go a long way:

--

--

Aaron A.

a reformed lawyer turned software engineer, in love with the internet.