Handling 429 / 503 errors from the Gemini API