added request to error handler