title: How to detect HTTP status from JavaScript
body: <p>I want to detect in a script, which could be deployed beyond my control, whether the page was delivered with a HTTP status of 200, 404 or 500 etc.</p>
  
  <p>This can't be done, right?</p>