In ASP.NET you can set the Response.StatusCode to for example 404. Should the status line / description always be set? (to in this case "404 Page Not Found")
How do you get the description if you only have the code (404)? Is this somewhere in the framework or do you manually have to hardcode the descriptions?
System.Web.dll
is unavailable, or in .NET Core where `System.Web is removed, unfortunately. – Calistacalisthenics