title: Express res.status(200).json(...) only sending json message. How to retrieve status code?
body: <p>After a successful creation of new item in my database I send:</p>
  
  <pre><code>res.status(201).json({message:"Successfully Registered"});
  </code></pre>
  
  <p>On my angular front end I am able to <code>console.log(res)</code> and receive:</p>
  
  <p><code>{message: "Successfully Registered"}</code></p>
  
  <p>1) How do I get the status code on the front end? <code>res.status</code> returns undefined. The only response I'm getting is the JSON.</p>
  
  <p>2) What would be the best way to confirm successful desired api calls? For example, when I log in and credentials are correct, should I check for a <code>200</code> and then proceed? Or send a custom JSON message and check if the message for example says "Successful login" then proceed?</p>