Which method would you use in HttpInterceptor to catch and handle HTTP errors?

  • catchError
  • handleError
  • handleError and catchError
  • intercept
In an HttpInterceptor, you would use the intercept method to catch and handle HTTP errors. This method intercepts outgoing HTTP requests and incoming responses, giving you the opportunity to handle errors and modify requests before they are sent.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *