I have an api that returns 400 or 404 errors if failed.
When I run the http.get method, it does not catch the error while subscribing and generates an error.
Http.get(`api/path/here`).map(res => res.json()).subscribe( data => console.log(data), error => console.log(error) );
The following is the error:

Basit
source share