Added error handling in FetchHTTP