Allows you to very quickly view and search Wikipedia's HTTP Codes page.
Look up specific codes
Filter using wildcards
Don't know the status code?
Install requirements.txt
using pip install -r requirements.txt
. Although not required, setting up a virtualenv
is advised.
python main.py <search_term>
Setting up an alias for the script will allow you to use a custom, short "name" for any action.
For Unix systems place the following into .bashrc
or .zshrc
alias http-code="path/to/python /path/to/main.py $@"
For Windows place the following into your bat file that runs on terminal startup. If you do not know how to set this up, look into this answer on Stack Overflow
DOSKEY http-code="path/to/python /path/to/main.py" $*
The usage for the tool is as follows:
python main.py <search_term> --output-as-json --no-pretty --indent-size --no-colour
<search_term>
- Mandatory: Can be either a 3 digit code (use x to replace unknowns, eg: 2xx for all codes starting with 2) or a text search.
--output-as-json
- Optional: Output as JSON, by default will pretty-print JSON... use
--no-pretty
to disable
- Optional: Output as JSON, by default will pretty-print JSON... use
--no-pretty
- Optional: Disable pretty printing of JSON, does nothing without
--output-as-json
flag set
- Optional: Disable pretty printing of JSON, does nothing without
--indent-size
- Optional: Change the default (2) indent size
--no-colour
- Optional: Disable colour for non-JSON output
python tests/test.py
- Tests don't run on Windows systems :|