When using the Cloud Client Library to upload images to Cloud Storage, users occasionally encounter incomplete uploads with HTTP 504 Gateway Timeout errors. How can you modify the application to improve its resilience against such errors? | Google Professional Cloud Developer Quiz - LeetQuiz