I have the following code to handle a 404 exception.
 fileExists(url){
        this.http.get(url)
                  .map(res => res.json())
                  .subscribe(
                      data => console.log(data),
                      err => console.log(err.status));  //when it fails
  }
When the code fialed it reaches to the line err => console.log(err.status)
But it shows the error on the console.
So, how can i handle it, in a way that no error shows in the console?
