I developed an automation C# WinFormsApp which task is only to check website http statuses from my IIS server and if a website returns an error like error: 500-504, it will restart the Site in IIS and the error should be fixed due to the IIS reset.
Is there any way of simulating/forcefully return errors like 503 or something from my site/IIS server so that I could test if resetting IIS Site really fixed the Site error?