-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update usage to go up to 511 and update README with some info
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
# httpwut | ||
|
||
CLI tool to look up HTTP status codes. | ||
CLI tool get HTTP status code information. | ||
|
||
_Probably not for other people to use._ | ||
_This is a tool for me to learn Go, so you probably shouldn't use this._ | ||
|
||
``` | ||
λ httpwut -h | ||
Get HTTP status code information | ||
usage: httpwut [100..511] [-v|--verbose] [-c|--cats] [-d|--dogs] | ||
λ httpwut 502 | ||
502 - Bad Gateway | ||
λ httpwut 502 --verbose | ||
502 - Bad Gateway | ||
The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. | ||
https://www.rfc-editor.org/rfc/rfc9110.html#name-502-bad-gateway | ||
``` | ||
|
||
Passing `--cats` and/or `--dogs` (you can do both at the time same) will open | ||
the status codes on https://http.cats and https://httpstatusdogs.com, | ||
respectively. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters