Description: A simple API endpoint for response http status codes
- Run in local web server
If you don't have GO, go here for instructions of installation
go run main.go
API will be ported at port 8080. And you can access following this format localhost:8080/status/[code number]
Eg: localhost:8080/status/404
=> This will return a document with 404 status - Opens executable file by double-clicking release file that is compatible with your system.
- Accesses API through network, please follow the format below:
https://arcane-basin-93470.herokuapp.com/status/[_code_number_]
Eg: https://arcane-basin-93470.herokuapp.com/status/200
=> This will return a document with 200 status
- Add delay time for response, by simply include a delay query
Eg1: [host]/status/503?delay=10
=> response with status code 503 after 10 seconds
Eg2: [host]/status/500?delay=10s
=> response with status code 500 after 10 seconds
Eg3: [host]/status/501?delay=5000ms
=> response with status code 501 after 5000 miliseconds
Note: This API has all the status codes that you can get back from GET request, 2xx - 5xx