Catch HTTP request exception