Angular Error Interceptor

When applications make HTTP requests and fail, we need to handle them. In this article, we learn how to do this using an error interceptor.