Practice ยท 2 of 2
Retry or Stop?
Implement should_retry(status: int, attempts: int) -> bool: retry ONLY server errors (5xx) and 429, and only when attempts < 3. Everything else returns False.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: HTTP Semantics Drills