this was a small bug in the previous implementation - the default error handler would give a 500 status but an empty body.  This fix makes sure to write the body.