Catch errors in HTTP requests
Adding timeouts