In my Angular2 App when a Promise call errors out, how can I get the original request url and body content ? I want to get more details like what was the Url called and what was the body content. I am not seeing it in the "error" parameter.
private handleError(error: any): Promise<any> {
if (error.status == 0) {
alert("Unable to reach the remote server.");
}
return Promise.reject(error.message || error);
}
Please advise.