Skip to content

Instantly share code, notes, and snippets.

@timw255
timw255 / Global.asax.cs
Last active August 29, 2015 14:14
Custom Errors Module - Proof of Concept
protected void Application_Error(object sender, EventArgs e)
{
// check to see if something horrible is going on...
if (Request.Headers["Custom-Error-Request"] != null)
{
// looks like a request to grab an error page ended up here. let's bail.
return;
}
// get the last error