httpstat.us
Welcome to httpstat.us, your simplest way to test HTTP status codes!
Point your app to httpstat.us and append the status code you want to test, then make a request and we'll return that for you.
async function getData(url) {
const res = await fetch(url);
if (!res.ok) {
throw new Error("Failed to get data");
}
return await res.json();
}
getData("https://httpstat.us/500").then(console.log).catch(console.error);
Learn more at httpstat.us.
Tech
The site is .NET 7 and it is hosted as a containerised Azure AppService.
Self hosting
If you want, you are able to self-host the service using the provided image, which can be found on GitHub packages. This may be useful for testing HTTP status codes which are not available in Azure, or time outs longer than we support in the hosted version.
Docker on ARM
Presently, Docker on ARM (such as Mac M1) is not supported due to a bug in the .NET 7 build engine: NuGet/Home#12227. Legacy versions on the .NET 6 runtime are available but not supported.