ChiakiYu.Common.Web.WebHelper.Return404 C# (CSharp) Method

Return404() public static method

返回 StatusCode 404
public static Return404 ( HttpContext httpContext ) : void
httpContext System.Web.HttpContext HttpContext
return void
        public static void Return404(HttpContext httpContext)
        {
            ReturnStatusCode(httpContext, 404, null, false);
            if (httpContext != null)
            {
                httpContext.Response.SuppressContent = true;
                httpContext.Response.End();
            }
        }