That is fair. I can confirm that the host https://forums.flightsimulator.com typically returns a 500 or 504 when an outage is occurring.
A ‘Not Found’ error (404) is a response from a server that acknowledges the request but informs the requesting client that the resource could not be found at that address. So 404 errors usually respond quickly.
class Program {
public class Resource {
public string Address;
public string Name;
}
static async Task Main(string[] args) {
List<Resource> Resources = new List<Resource>
{
new Resource { Type = AddressType.URL, Address = "https://flightsimulator.com", Name = "Official Website" },
new Resource { Type = AddressType.URL, Address = "https://forums.flightsimulator.com", Name = "Forums" },
}
foreach(Resource r in Resources) {
HttpClient client = new HttpClient();
var res = await client.GetAsync(r.Address, HttpCompletionOption.ResponseHeadersRead);
Console.WriteLine($"HTTP\t{(int)res.StatusCode}\t\t-\t{r.Name}");
}
}
}
It’s not that impressive - I was simply bored and decided that writing this program would entertain me for five minutes and was generally speaking more fun than using down detector.
You don’t. Not unless you have the .NET Core SDK installed and Visual Studios.
It is a small C# console application. It iterates through a list of websites and prints their HTTP status code to the console. So again not really that impressive, I was simply showing the depths of my boredom