I have an angular service which has a method that catches http errors and returns it using throw error.
catch error code snippet
}), catchError(err =>