A mini network layer: URLRequest → Result<T, APIError>
Task
Write a minimal network layer: perform a request, check the HTTP status, decode a Decodable, return a typed error. It must be testable without the network.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep