How can I retrieve the http status code returned from the server (200, 302 etc.) from javascript/jquery?
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.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.