Http post error handling

Hello,

I switch off my internet connection and want to test which error code I got for my backend call and its always returns null.

this.http.post(URL, body, options)
       .subscribe(
         response => {
         console.log(response);
         },
         error => {
           console.log(error);

         }
       );

But I want to get the http status codes.