Try to catch HTTP errors