Checkpoint: Production-Style API Client
intermediate20 min readLesson 96 of 169
A client class with injected transport, defensive parsing, and bounded retries.
Assemble the module: a small client class that injects its transport, classifies responses, retries transients, and never hangs.
Working with AI: paste your client and ask "how does this behave on a 500? on a 429? on garbage bytes?" — if you can't answer from the code, restructure.