I took a slightly different approach to this problem.
I made a CLI tool (bash) that leverages imgcat (the one that comes with iTerm2) to display images (in my terminal) from http.cat that correspond to the code I'm wondering about as well as a link to the mozilla docs with more details if i need them.
seeing the cats injects a smile into the frustration around "what the heck is a 407?!"
I sold httpstatuses.com (website and domain) in... 2016 I think, maybe 2017, and the acquirers kept it as-is until 2022. Someone (not me) recently relaunched the site (as it was opensource) under a new domain -- https://httpstatuses.io -- so if you can replace ".com" with ".io" in your muscle memory, you can get the original site!
You can actually just do without the keywords: it's easy to figure out what is intended since class will never reach 100, and code will never go under 100. Will make this more intuitive to use since there's nothing to remember.
I've had great success using this sort of know-your-data "smart" search on company-internal databases for customers. People like it because it's intuitive and they don't need to remember keywords or mess with dropdowns.
This comment is completely unnecessary and adds nothing to the discussion. How is the author publishing source code on his own github repo "burdening the public".
You want to bring up pollution, what about the plethora of http status reference sites we already have. At least OP kept it to CLI. It’d be nice if it sourced it from Mozilla so it wouldn’t need updating.
Completely agree. The pollution metaphor is apt: Not only the cognitive cost of looking over this code, realizing it’s displaying a CSV, and offering advice but also the real CO2 cost of hosting, packaging, distributing, running, and maintaining this code. Truly progressive devs should always consider these costs.
[+] [-] danstewart_|3 years ago|reply
I use a bash function to load the MDN page for the status:
[+] [-] tuxie_|3 years ago|reply
[+] [-] bil7|3 years ago|reply
[+] [-] masukomi|3 years ago|reply
I made a CLI tool (bash) that leverages imgcat (the one that comes with iTerm2) to display images (in my terminal) from http.cat that correspond to the code I'm wondering about as well as a link to the mozilla docs with more details if i need them.
seeing the cats injects a smile into the frustration around "what the heck is a 407?!"
https://github.com/masukomi/masuconfigs/blob/master/bin/http...
[+] [-] itsmemattchung|3 years ago|reply
[+] [-] rlopezcc|3 years ago|reply
.bashrc:
httpcode () { python3 -c "from http import HTTPStatus; print(HTTPStatus($1))" }
[+] [-] kseistrup|3 years ago|reply
⌘ https://codeberg.org/kas/httperr
[+] [-] dolmen|3 years ago|reply
[+] [-] citricsquid|3 years ago|reply
Their blog post about reviving the project: https://jkulton.com/2022/reviving-httpstatuses
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] muhehe|3 years ago|reply
[+] [-] noman-land|3 years ago|reply
[+] [-] the_biot|3 years ago|reply
I've had great success using this sort of know-your-data "smart" search on company-internal databases for customers. People like it because it's intuitive and they don't need to remember keywords or mess with dropdowns.
Also, why don't you just call it http?
[+] [-] JimDabell|3 years ago|reply
https://httpie.io/docs/cli/usage
[+] [-] darrenf|3 years ago|reply
[+] [-] hackarama|3 years ago|reply
[+] [-] b0afc375b5|3 years ago|reply
https://www.httpstatuses.org/
P.S. For some reason I can't remember if 301 or 302 is the permanent one.
P.P.S. I hate the fact that 401 should be Unauthenticated (instead of Unauthorized), and 403 should be Unauthorized (instead of Forbidden).
[+] [-] eterps|3 years ago|reply
It's definitely not complete, but very helpful to decide which status code makes sense for a particular situation.
[+] [-] rlupi|3 years ago|reply
[+] [-] fxttr|3 years ago|reply
[+] [-] 0xbadcafebee|3 years ago|reply
[+] [-] corrral|3 years ago|reply
Now I just go to http.cat.
[+] [-] robofanatic|3 years ago|reply
Why not simply do this?
$ hssp 204
$ hssp 2 -- lists everything under it
[+] [-] spl0i7|3 years ago|reply
[+] [-] dolmen|3 years ago|reply
For those that think that `man` is only about commands, we already have `man 7 ascii`.
[+] [-] mxuribe|3 years ago|reply
[+] [-] cowbolt|3 years ago|reply
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] bmn__|3 years ago|reply
[deleted]
[+] [-] thefreeman|3 years ago|reply
[+] [-] hk1337|3 years ago|reply
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
You want to bring up pollution, what about the plethora of http status reference sites we already have. At least OP kept it to CLI. It’d be nice if it sourced it from Mozilla so it wouldn’t need updating.
[+] [-] CoffeeCollector|3 years ago|reply