Added printing of status code by response classes. Close #8

This commit is contained in:
Erik C. Thauvin 2023-09-28 23:34:02 -07:00
parent 7b3e4adfc8
commit 1fca084fc9
3 changed files with 37 additions and 11 deletions

View file

@ -302,3 +302,14 @@ $ java -jar httpstatus-1.1.0.jar
226: IM Used
...
```
You can also print status codes by [response classes](https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes):
```sh
$ java -jar httpstatus-1.1.0.jar 2xx
200: OK
201: Created
202: Accepted
203: Non-Authoritative Information
204: No Content
...
```