How to handle net::ERR_CONNECTION_REFUSED in Angular2
//First inject the router in the constructor
private handleError (error: Response | any) {
//Your other codes
if (error.status == 0){ //or whatever condition you like to put
this.router.navigate(['/error']);
}
}