Use Gitlab::HTTP.try_get to rescue common HTTP errors. An optional param can be supplied to log extra info.
Attach a file by drag & drop or click to upload