improving http request error reporting