title: How to get HttpStatusCode or why StatusCode is undefined
body: <p>I have an Angular Client and I do a List request like this.</p>
  <pre><code>getMyList(body: SearchCriteria): Observable&lt;HttpResponse&lt;MyResult[]&gt;&gt; {
    return this.http.post&lt;HttpResponse&lt;MyResult[]&gt;(url,body);
  }
  </code></pre>
  <p>And I execute this with</p>
  <pre><code>httpService.getMyList(body).subscribe((response: HttpResponse&lt;MyResult[]&gt;) =&gt;
  {
   console.log(response.body)
   console.log(response.status)
   console.log(response.statustext)
   console.log(response)
  }
  );
  </code></pre>
  <p>Console Output of this is:</p>
  <pre><code>undefined
  undefined
  undefined
  [{my list....}]
  </code></pre>
  <p>So my question, why is &quot;response&quot; directly my list and not a HttpResponse. How to get the statuscode?</p>
  <p>My expectaion was.</p>
  <pre><code>response.body  // is my list result
  response.status //is a HttpStatusCode
  </code></pre>
  <p>What i do wrong?</p>