public static void Return404(HttpContext httpContext) { ReturnStatusCode(httpContext, 404, null, false); if (httpContext != null) { httpContext.Response.SuppressContent = true; httpContext.Response.End(); } }