public static void Return403(HttpContext httpContext) { WebUtility.ReturnStatusCode(httpContext, 403, null, false); if (httpContext != null) { httpContext.Response.SuppressContent = true; httpContext.Response.End(); } }
public static void Return304(HttpContext httpContext, bool endResponse = true) { WebUtility.ReturnStatusCode(httpContext, 304, "304 Not Modified", endResponse); }