middleware for displaying Noir style exceptions in the browser