{"id":20209873,"url":"https://github.com/rask/httpstati","last_synced_at":"2025-06-14T02:37:34.805Z","repository":{"id":71398865,"uuid":"46273592","full_name":"rask/httpstati","owner":"rask","description":"CLI for HTTP status code information","archived":false,"fork":false,"pushed_at":"2015-11-16T19:08:37.000Z","size":137,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T10:32:29.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-16T12:35:55.000Z","updated_at":"2015-11-16T12:36:24.000Z","dependencies_parsed_at":"2023-03-11T10:28:01.563Z","dependency_job_id":null,"html_url":"https://github.com/rask/httpstati","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rask/httpstati","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fhttpstati","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fhttpstati/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fhttpstati/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fhttpstati/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rask","download_url":"https://codeload.github.com/rask/httpstati/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fhttpstati/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259749910,"owners_count":22905798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T05:43:08.727Z","updated_at":"2025-06-14T02:37:34.744Z","avatar_url":"https://github.com/rask.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpstati\n\nA command-line tool for having a quick look at the different HTTP status codes\ndefined in the W3 HTTP protocol [RFC 2616, section 10][rfc2616].\n\nInstead of Googling _http status codes_, you can `Ctrl+Alt+T` (YMMV) and\n\n    $ httpstati\n    \n[![asciicast](https://asciinema.org/a/9p4hqsln4p0a3n30vezuy37vq.png)](https://asciinema.org/a/9p4hqsln4p0a3n30vezuy37vq)\n\n## Installation\n\n### Requirements\n\n-   CLI-ready PHP 5.4+\n-   A commandline able to run PHP scripts\n\n_httpstati_ is based on Symfony Console, so if you can run Composer for instance,\nyou can run _httpstati_.\n\n### Download and test\n\nDownload the `httpstati.phar` file and make sure `which php` returns a CLI usable PHP\nbinary path. Also make sure you've set the permissions to execute it:\n\n    $ chmod +x httpstati.phar\n\nRunning `./httpstati.phar` should return general info about the app and a humongous\nlist of (~2) commands which you can use.\n\nIf you want to make the application globally available, you can\n\n    $ sudo ln -s /path/to/downloaded/httpstati.phar /usr/bin/httpstati\n    $ # or perhaps\n    $ sudo mv ./httpstati.phar /usr/bin/httpstati\n\n## Usage\n\n### List HTTP status codes\n\nYou can list all generally used/available status codes using\n\n    $ httpstati codes\n    \nThe command will dump a table with codes and their names. This is also the default\ncommand so using\n\n    $ httpstati\n    \nyields the same results if no arguments are needed.\n\n### List HTTP status codes for a certain type category\n\nA type category meaning 1xx, 2xx, 3xx and so on.\n\n    $ httpstati codes --category=2\n    $ # or\n    $ httpstati codes -c2\n    \nThis will output the same table as the previous command, with only displays the codes\nwhich are in the set category.\n\n### Show information for a status code category\n\nYou can view a description for a category (e.g. 1xx, 2xx, etc.) using\n\n    $ httpstati codes 2\n    $ # or\n    $ httpstati codes 2xx\n    \nWill output a simple manpageish text for the category.\n\n### Show information for a specific status code\n\nYou can view a description for a single status code using\n\n    $ httpstati codes 404\n    $ # or\n    $ httpstati codes 500\n    $ # and so on ...\n    \nWill display a manpageish view for the status code.\n\n### Read about the application\n\nUse\n\n    $ httpstati about\n    \nTo read some general information about this application.\n\n## Todo\n\n-   Tests. Not a big application but the basic output logic should be tested.\n-   Validate the data is up-to-date. The RFC is old and mentions other later RFCs as\n    valid RFCs.\n-   The `codes` as a command is a bit redundant currently. Perhaps find a way to use\n    the status code numbering as a command directly.\n-   Simpler installation procedure, auto-updates using `httpstati update` or\n    something.\n-   Expand the content. Perhaps an `example` command on situation where to return\n    and use certain HTTP status codes. Maybe a `references` command with links to\n    relevant documents, articles and discussions on certain codes and best practices.\n\n## Development\n\nPull requests welcome. Make a fork and create a topic branch.\n\n## License and other information\n\n-   Licensed with GPLv3. See `LICENSE.md`.\n-   Most content copied and/or slightly modified from [RFC 2616, section 10][rfc2616]\n    regarding HTTP status codes.\n-   Thanks to [Matt Ketmo][mattketmo] for his [Phar packaged CLI apps guide][guide]. \n\n[rfc2616]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10\n[mattketmo]: https://github.com/MattKetmo\n[guide]: https://moquet.net/blog/distributing-php-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frask%2Fhttpstati","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frask%2Fhttpstati","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frask%2Fhttpstati/lists"}