fix bug #5

added request specific error handler.