News for hackers. Stuff that matters.
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:

  >>> from http import HTTPStatus
  >>> HTTPStatus.OK
  <HTTPStatus.OK: 200>
  >>> HTTPStatus(404)
  <HTTPStatus.NOT_FOUND: 404>
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('_',' ')

Re:Show HN: A CLI to avoid remembering HTTP status codes by kseistrup on Thursday July 21, 2022 @03:32AM (#32176756)
Here's a simple CLI interface to Python's HTTP status codes:

⌘ https://codeberg.org/kas/httperr