title: How can I get the http status code with javascript?
body: <p>How can I retrieve the http status code returned from the server (200, 302 etc.) from javascript/jquery?</p>
  
  <p>I am NOT looking to get this from an ajax request. I want to retrieve it on the initial page load and take some custom actions based on the status code.</p>
  
  <p>P.S, The solution doesn't necessarily need to be cross browser. This is for an internal application and so any browser specific solutions would be acceptable. </p>