Refactoring the Angular Service with Error Handling and Guard Functions

Giovanni Pace

Description

Let's refactor the Angular Service by adding structured error handling: I'll introduce guard functions to manage timeouts, network errors, non-ok responses, and unexpected cases in a centralized way.