title: How to check http 200 status code in angular if its not available in the json response
body: <p>Auth Service</p>
  
  <pre><code> logout() {
        return this.http.post(this.logOutApi, null);
      }
  </code></pre>
  
  <p>The status code doesn't show in the json response from the back end but is shows on postman's status. How to get the status code.</p>
  
  <p>ts file</p>
  
  <pre><code>logout() {
      this.chk.logout().subscribe((res: any)=&gt;{
        if(res.status == 200) //doesnt work{
        console.log(res);
        })
        }
      }, (err)=&gt;{
        alert("There was a problem logging you out");
      });
  }
  </code></pre>