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