Re:Show HN: A CLI to avoid remembering HTTP status codes
by itsmemattchung on Wednesday July 20, 2022 @10:27AM
(#32166233)
I refer to HTTP Status codes all the time throughout the day and use Python's built-in http library:
[ Parent
| on HN ]
Re:Show HN: A CLI to avoid remembering HTTP status codes
by rlopezcc on Wednesday July 20, 2022 @12:11PM
(#32167864)
Nice.
.bashrc:
httpcode () { python3 -c "from http import HTTPStatus; print(HTTPStatus($1))" }
Re:Show HN: A CLI to avoid remembering HTTP status codes
by kseistrup on Thursday July 21, 2022 @06:06AM
(#32177515)
Or even:
HTTPStatus($1).name.title().replace('_',' ')