How would you implement exponential backoff? My issue is detecting the retry situation. The docs say http response codes 429 and 50x should trigger this (https://cloud.google.com/storage/docs/json_api/v1/status-codes). But I don’t know how to detect those when using this library.
client/util/status.cc
contains code to translate http status codes to util::error::Code
, but 429 is missing from that list. Is my best course to patch it?
(would you like a pull request in that case?)