Hacker News new | ask | show | jobs
by rlopezcc 1429 days ago
Nice.

.bashrc:

httpcode () { python3 -c "from http import HTTPStatus; print(HTTPStatus($1))" }

1 comments

Or even:

HTTPStatus($1).name.title().replace('_',' ')