protected static SetStatusCodeAndShow404 ( |
||
context | ||
statusCode | int | |
return | void |
protected static void SetStatusCodeAndShow404(HttpContext context, int statusCode = 404)
{
context.Response.TrySkipIisCustomErrors = true;
context.Server.ClearError();
context.Response.StatusCode = statusCode;
context.Response.End();
}