EraCode practice

Type-safe API error handling with discriminated unions

Third-party APIsintermediateMulti-Part

Summary

Practice designing and consuming a typed response shape from a third-party API using a discriminated union so callers can safely branch on success vs error.

Problem preview

### Goal Fill the single gap so a third-party response is **type-safe** to consume. - Implement so it returns a **discriminated union** based on whether the API response has an field. - Happy path: i…

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.

Type-safe API error handling with discriminated unions | Third-party APIs practice | EraCode