add more information to HTTP error handler