Inspired by [httpstatu.us](https://github.com/aaronpowell/httpstatus), but written in Go, and is as minimal as possible. No third party dependencies, and less than 100 lines of code in a single file.
Previous versions had a single third-party dependency, but that's no longer necessary.
go install codeberg.org/danjones000/http-go-status@latest
```
## Usage
```shell
http-go-status
```
Then, make a request to your server. By default, it's running on port 8080, but you can set an environment variable, called PORT, to the port you prefer before running the command.
To make your request from within a web browser (CORS is supported), you could do this from the JS console:
```javascript
let resp = await fetch("http://localhost:8080/451");
console.log(resp.status); // 451
console.log(resp.statusText); // Unavailable for Legal Reasons
If there is no path, if the first element in the path is not an integer, or if it's an integer outside of the acceptable range, a 200 will be returned.