404 Not Found error when querying PyPI JSON API for package metadata
Goal Develop a client that can gracefully handle cancellation and timeout scenarios when retrieving package metadata from the PyPI JSON API. Constraints and Uncertainty The API returns a 404 Not Found with a JSON body containing "Not found" for non‑existent packages, and a 429 Too many requests when the rate limit (~60 req/min) is exceeded. No timeout header