| 1 |
Metadata-Version: 1.1 |
| 2 |
Name: httpcode |
| 3 |
Version: 0.6 |
| 4 |
Summary: httpcode - explain HTTP status code |
| 5 |
Home-page: http://github.com/rspivak/httpcode |
| 6 |
Author: Ruslan Spivak |
| 7 |
Author-email: [email protected] |
| 8 |
License: MIT |
| 9 |
Description: :: |
| 10 |
|
| 11 |
_ _ _____ _____ ____ ____ ___ ____ _____ |
| 12 |
| | | |_ _|_ _| _ \ / ___/ _ \| _ \| ____| |
| 13 |
| |_| | | | | | | |_) | | | | | | | | | _| |
| 14 |
| _ | | | | | | __/| |__| |_| | |_| | |___ |
| 15 |
|_| |_| |_| |_| |_| \____\___/|____/|_____| |
| 16 |
|
| 17 |
|
| 18 |
`httpcode` is a little utility that explains the meaning of an HTTP |
| 19 |
status code on the command line. |
| 20 |
|
| 21 |
`http://httpcode.readthedocs.org <http://httpcode.readthedocs.org>`_ |
| 22 |
|
| 23 |
Installation |
| 24 |
------------ |
| 25 |
|
| 26 |
:: |
| 27 |
|
| 28 |
$ [sudo] pip install httpcode |
| 29 |
|
| 30 |
There is also an official DEB package available at |
| 31 |
`http://packages.debian.org/sid/httpcode <http://packages.debian.org/sid/httpcode>`_ |
| 32 |
|
| 33 |
|
| 34 |
Usage |
| 35 |
----- |
| 36 |
|
| 37 |
Explain 405 status code |
| 38 |
|
| 39 |
:: |
| 40 |
|
| 41 |
$ hc 405 |
| 42 |
Status code 405 |
| 43 |
Message: Method Not Allowed |
| 44 |
Code explanation: Specified method is invalid for this resource. |
| 45 |
|
| 46 |
Or 418 status code :) |
| 47 |
|
| 48 |
:: |
| 49 |
|
| 50 |
$ hc 418 |
| 51 |
Status code 418 |
| 52 |
Message: I'm a teapot |
| 53 |
Code explanation: The HTCPCP server is a teapot |
| 54 |
|
| 55 |
List all codes |
| 56 |
|
| 57 |
:: |
| 58 |
|
| 59 |
$ hc |
| 60 |
Status code 100 |
| 61 |
Message: Continue |
| 62 |
Code explanation: Request received, please continue |
| 63 |
|
| 64 |
Status code 101 |
| 65 |
Message: Switching Protocols |
| 66 |
Code explanation: Switching to new protocol; obey Upgrade header |
| 67 |
|
| 68 |
Status code 200 |
| 69 |
Message: OK |
| 70 |
Code explanation: Request fulfilled, document follows |
| 71 |
|
| 72 |
... |
| 73 |
|
| 74 |
Search code(s) by description (case-insensitive) |
| 75 |
|
| 76 |
:: |
| 77 |
|
| 78 |
$ hc -s too |
| 79 |
Status code 413 |
| 80 |
Message: Request Entity Too Large |
| 81 |
Code explanation: Entity is too large. |
| 82 |
|
| 83 |
Status code 414 |
| 84 |
Message: Request-URI Too Long |
| 85 |
Code explanation: URI is too long. |
| 86 |
|
| 87 |
Filter codes with a regex |
| 88 |
|
| 89 |
:: |
| 90 |
|
| 91 |
$ hc 30[12] |
| 92 |
Status code 301 |
| 93 |
Message: Moved Permanently |
| 94 |
Code explanation: Object moved permanently -- see URI list |
| 95 |
|
| 96 |
Status code 302 |
| 97 |
Message: Found |
| 98 |
Code explanation: Object moved temporarily -- see URI list |
| 99 |
|
| 100 |
Use an 'x' for any digit |
| 101 |
|
| 102 |
:: |
| 103 |
|
| 104 |
$ hc 1xx |
| 105 |
Status code 100 |
| 106 |
Message: Continue |
| 107 |
Code explanation: Request received, please continue |
| 108 |
|
| 109 |
Status code 101 |
| 110 |
Message: Switching Protocols |
| 111 |
Code explanation: Switching to new protocol; obey Upgrade header |
| 112 |
|
| 113 |
Show help |
| 114 |
|
| 115 |
:: |
| 116 |
|
| 117 |
$ hc -h |
| 118 |
Usage: hc [code] [options] |
| 119 |
|
| 120 |
code may contain regular expression or use 'x' to denote any digit |
| 121 |
code examples: 418, 30[12], 3.*, 1xx |
| 122 |
|
| 123 |
Without parameters lists all available |
| 124 |
HTTP status codes and their description |
| 125 |
|
| 126 |
|
| 127 |
Options: |
| 128 |
-h, --help show this help message and exit |
| 129 |
-s SEARCH, --search=SEARCH |
| 130 |
Search for a code by name or description. Search text |
| 131 |
may contain regular expressions. |
| 132 |
|
| 133 |
Roadmap |
| 134 |
------- |
| 135 |
|
| 136 |
Add more codes |
| 137 |
|
| 138 |
|
| 139 |
Change History |
| 140 |
============== |
| 141 |
|
| 142 |
0.6 (2017-04-03) |
| 143 |
---------------- |
| 144 |
- Use argparse instead of optparse |
| 145 |
- Declare as Python 2.7+ and Python 3 compatible |
| 146 |
|
| 147 |
0.5 (2011-12-30) |
| 148 |
---------------- |
| 149 |
- Colorize HTTP codes |
| 150 |
|
| 151 |
0.4 (2011-12-27) |
| 152 |
---------------- |
| 153 |
- regex and 'x' can be used as part of an HTTP code |
| 154 |
https://github.com/rspivak/httpcode/pull/6 |
| 155 |
|
| 156 |
0.3 (2011-12-22) |
| 157 |
---------------- |
| 158 |
- Add -s/--search option to search for code by description |
| 159 |
https://github.com/rspivak/httpcode/pull/3 |
| 160 |
|
| 161 |
0.2 (2011-12-21) |
| 162 |
---------------- |
| 163 |
- Add HTTP code 418 (I'm a teapot): https://github.com/rspivak/httpcode/pull/2 |
| 164 |
- Bugfix: https://github.com/rspivak/httpcode/issues/1 |
| 165 |
|
| 166 |
0.1 (2011-12-21) |
| 167 |
---------------- |
| 168 |
- Initial release |
| 169 |
|
| 170 |
Platform: UNKNOWN |
| 171 |
Classifier: Intended Audience :: Developers |
| 172 |
Classifier: License :: OSI Approved :: MIT License |
| 173 |
Classifier: Programming Language :: Python |
| 174 |
Classifier: Programming Language :: Python :: 2.7 |
| 175 |
Classifier: Programming Language :: Python :: 3 |
| 176 |
Classifier: Topic :: Internet :: WWW/HTTP |
| 177 |
Classifier: Operating System :: Unix |