Loading topic
pipe(), and have made requests with HttpClient. It covers what HttpClient hands you when a request fails and how to read it safely. Later chapters build catchError and retry logic on 5 min readHttpClient, read an HttpErrorResponse, and chain operators with pipe(). You will learn to sort every failed request into a category. Later chapters use that category to decide what to show the user and whether to retry.4 min readHttpClient, and that you know what an Observable is and how pipe() chains operators. Earlier chapters covered HttpErrorResponse and the difference between network, 4xx and 5xx failures. Here you will use that knowledge inside the5 min readcatchError has caught a failure: how the failure reaches the person using your app. It assumes you can read TypeScript, build a standalone Angular component, use signals at a basic level, and call HttpClient with pipe(). You should also know how to tell n6 min readHttpClient, you know what an Observable is, and you have used pipe() with catchError. It covers how the RxJS retry operator works, how to configure it, and where it goes in a pipeline. Backoff, retry policy and interceptors get4 min readHttpClient, read an HttpErrorResponse, and use pipe() with catchError and retry. Here you decide which failures to retry and which to pass straight to the caller.5 min readretry resubscribes to a failed Observable, how to decide which errors are safe to retry, and how HttpErrorResponse exposes status. Here you will control the time between attempts, so a struggling server gets room to recover.5 min readHttpClient, you know what pipe() and catchError do, and you have seen inject(). Earlier chapters handled errors inside each service method. That approach repeats code in every method. An interceptor lets you apply one policy, s5 min readHttpClient service, you know what catchError and retry do in RxJS, and you have seen a functional interceptor. Here you combine them. You will build one interceptor that retries transient failures for every request, instead of repeating retry in eac6 min readHttpClient service and read an HttpErrorResponse. It also assumes you know catchError, the retry operator, and functional interceptors from the earlier chapters. You will add a time limit to requests, decide what error a timeout should produce, and 5 min readHttpClient, you know catchError and pipe(), and you have seen provideHttpClient in an application config. Earlier chapters handled errors close to the request. This chapter covers the last line of defense: errors that nothing el5 min readTestBed, and that you have read the earlier chapters on catchError, the retry operator, and the retry interceptor. Here you will test those pieces without a server. You will fake each response, including failures, and control time so4 min readHttpClient, catchError, and functional interceptors from the earlier chapters. It also assumes you have seen the retry interceptor and the retry operator. Here you will build an interceptor that reacts to one specific failure: an expired access token.5 min read