Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aavision/all-here
Get any status code you want 🚀
https://github.com/aavision/all-here
backend frontend go golang http http-client http-server mux statuscode webserver
Last synced: 3 days ago
JSON representation
Get any status code you want 🚀
- Host: GitHub
- URL: https://github.com/aavision/all-here
- Owner: AAVision
- License: mit
- Created: 2024-01-15T17:23:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T07:15:06.000Z (10 months ago)
- Last Synced: 2024-01-18T08:11:13.326Z (10 months ago)
- Topics: backend, frontend, go, golang, http, http-client, http-server, mux, statuscode, webserver
- Language: Go
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# all-here
We always face some obstacles while testing the vendor's endpoints from the backend side and even from the front-end team. So we decided to create a tool that will return to you the status code you want. The tool in default runs on port 9876, but you can pass the port you want.
## HTTP status codes
HTTP status codes are three-digit responses from the server to the browser-side request. Everyone has probably gotten the classic 404 page-not-found error. That is an HTTP client error status code and there are a lot more of them.
https://umbraco.com/knowledge-base/http-status-codes/
https://github.com/golang/go/blob/master/src/net/http/status.go## Info
You can get the release: https://github.com/AAVision/all-here/releases/tag/v0.0.1## Run
```bash
go run . --port 9887
```
then try to hit the following endpoint with the status code you want:
```bash
http://localhost:9887/{status_code}
http://localhost:9887/302
```You'll get a response with the status code you sent and a response body with:
```bash
{"message":"Found"}
```## Build
```bash
go build .
```## LICENSE
This project is licensed under the MIT License. See the [LICENSE](https://github.com/aavision/all-here/blob/main/LICENSE) file for details.