title: Angular 6 HttpErrorResponse on POST with 200 status
body: <p>With my Angular 6 client I access the <code>http://localhost:8082/login</code> to send <code>username</code> and <code>password</code> and return a token. 
  This is the error <a href="https://i.stack.imgur.com/YPODk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YPODk.png" alt="enter image description here"></a>
  Notice that, under <code>error:</code> there is the token that I want.</p>
  
  <p>This is how it looks on Postman
  <a href="https://i.stack.imgur.com/6k9pL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6k9pL.png" alt="enter image description here"></a></p>
  
  <p>And this is the function I use on Angular to get the token with the given username and password</p>
  
  <pre><code>validateUser(user:User){
  
  
      var reqHeader = new HttpHeaders({ 'Content-Type': 'application/json','No-Auth':'True' });
  
  
  
      return this.httpClient.post&lt;User&gt;(this.apiURL + '/login',user,{headers:reqHeader});
    }
  </code></pre>
  
  <p>I want just to return the token, like in Postman. I tried <code>toPromise()</code> but I've got even more errors.</p>