Configure timeouts in HttpClient to avoid hanging requests.
Setting timeouts in HttpClient ensures applications don't hang indefinitely on slow or unresponsive network calls. For instance, setting a timeout of 5 seconds for a product info API call ensures the app remains responsive, even if the server is slow.