raise TransientRemoteException for 502 errors
This allows clients to retry harder, instead of immediately flooding Sentry with reports from loaders when storage is down (eg. https://sentry.softwareheritage.org/share/issue/95b5c4bc7f534ae2bb9c06e3b6976e48/).