Implements "recover" function to recover from HTTP errors