Error reporting for http requests