In my MVC4 app I had a global.asax.cs override of Application_Error(object sender, EventArgs e)
where I could extract the exception
, statusCo
In Beta8, agua from mars' answer is a little different.
Instead of:
var feature = Context.GetFeature();
Use:
var feature = HttpContext.Features.Get();
This also requires a reference to Microsoft.AspNet.Http.Features, and the following line in Configure() in Startup.cs:
app.UseExceptionHandler("/Home/Error");