Get Status Code
Published at Jan 5, 2024
Get Status Code is a simple convenience service to retrieve a desired HTTP Get Status Code.
I use this for testing some of my services, which is probably its main use case. If you end up with a different one please let me know!
The sauce can be found here and the service is hosted on my cloud and can be accessed through https://gsc.ipbuff.com/.
Usage
Let’s say you want to get a 404 response. Just make a HTTP GET to https://gsc.ipbuff.com/404 and you’ll get a HTTP response with the requested Status Code and the Status Code text in the body.
For instance:
curl -i https://gsc.ipbuff.com/404 Returns:
HTTP/1.1 404 Not Found
Content-Length: 10
Content-Type: text/plain; charset=utf-8
Date: Fri, 05 Jan 2024 11:48:27 GMT
X-Content-Type-Options: nosniff
Not Found