API: Retry requests when backend is temporarily unavailable.