hi folks,
return this.http.post(*******)
                .map((data: Response) => data.json())
                .catch(this.handleError)
private handleError(error: Response) {
    if (error.status === 500 || error.status === 400 || error.status === 
404 || error.status === 401)
        return Observable.throw(new Error(error.status.toString()));
}

======================================================================

**********
 .subscribe(data => {***},
            (error) => {
alert("This is Error message");
            });

It seems ok but I am getting error message in Developer Tools
POST http://localhost:5002/*****/*** 404 (Not Found)

Is it possible to hide this error message in developer tools?

I am waiting for your response.
Thanks in Advance

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to