httpcode is a Python utility that explains the meaning of an HTTP status code on the command-line.
Installation
[sudo] pip install httpcode
Usage
Explain 405 status code
$ hc 405
Status code 405
Message: Method Not Allowed
Code explanation: Specified method is invalid for this resource.
List all codes
$ hc
Status code 100
Message: Continue
Code explanation: Request received, please continue
Status code 101
Message: Switching Protocols
Code explanation: Switching to new protocol; obey Upgrade header
Status code 200
Message: OK
Code explanation: Request fulfilled, document follows
...
Show help
$ hc -h
Usage: hc [code]
Without parameters lists all available
HTTP status codes and their description
Options:
-h, --help show this help message and exit
What is new in this release:
- Colorize HTTP codes
What is new in version 0.4:
- regex and 'x' can be used as part of an HTTP code https://github.com/rspivak/httpcode/pull/6
What is new in version 0.3:
- Add -s/--search option to search for code by description https://github.com/rspivak/httpcode/pull/3
What is new in version 0.2:
- Add HTTP code 418 (I'm a teapot): https://github.com/rspivak/httpcode/pull/2
- Bugfix: https://github.com/rspivak/httpcode/issues/1
Requirements:
- Python
Comments not found