Created
May 5, 2014 21:15
-
-
Save stevejay/d596c838af17a2292cb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = HttpContext.Current.Request.Path; | |
HttpContext.Current.RewritePath("~/Error/ManualErrors"); | |
HttpContext.Current.Session["statusCode"] = statusCode; | |
IHttpHandler handler = new MvcHttpHandler(); | |
handler.ProcessRequest(HttpContext.Current); | |
HttpContext.Current.RewritePath(path); | |
HttpContext.Current.Server.ClearError(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment