title: How to get status code for PATCH method in angular?
body: <p>I am making a webservice API call using PATCH method. If the patch is successful then it will return a 204 status code. With the help of status code, I write logic in my component. But HTTPResponse is coming as null when I do a console.log. How do I get the status code in this case to write my logic?</p>
  <pre><code>public invokePatchRequest(): void {
          this.myService
          .invokePatchRequest('John')
          .pipe(takeUntil(this.unsubscribe$))
          .subscribe(
              (response: HttpResponse&lt;any&gt;) =&gt; {
                  if (response.status === 204 ) {
                      console.log('Display Success Message');
                  } 
              },
              (error: HttpErrorResponse) =&gt; {
                  // Handle Error
              }
          );
      }
  </code></pre>
  <p>In the above code, response is coming as null. So I am not able to compare the status code. Please advice.</p>