HTTP API calls catching exceptions.