I want to get an error response message sent by node with angular, but I can not do that.
Node.js:
res.status(401).send({ "ERROR": "001", "message": "this is error" });
Angular:
public get(body) {
    return this.httpClient.post(`${this.API_URL}~`, body).catch(this.handleError);;
  }
  private handleError(error: any) {
    console.log(error);
    return Observable.throw(error);
  }
console in chorme
Http failure response for http://localhost:8000/~: 401 Unauthorized
response in chome
{"ERROR": "001", "message": "this is error"}
Although I can confirm it on the chrome network , I can not use the error message in angular because the output in console.log is 'Http failure response for http: // localhost: 8000 / ~: 401 Unauthorized'