Use Gitlab::HTTP.try_get to rescue common HTTP errors. An optional param can be supplied to log extra info.