added custom http error handler