ROBUST API ERROR HANDLING
Handling API errors and invalid city searches
I implemented try-catch blocks around the API request and added conditional checks for response status codes. I also displayed user-friendly error messages when a city was not found or when the API key was invalid.
