title: Getting the error text in an XMLHttpRequest error call back
body: <p>Given this little snippet of code:</p>
  
  <pre><code>function getPage () {
          var xhttp = new XMLHttpRequest();
          xhttp.addEventListener("error", getFailed);
          xhttp.open("GET", "http://nonexistentserver.com", true);
          xhttp.send();
          }
  
  function getFailed(msg) {
      // I get an ProgressEvent object which doesn't have any text properties?
          }
  </code></pre>
  
  <p>When it runs, the getFailed() callback does indeed get called, but I can't find any information on how to determine what the error was.  When I searched for information, all I could find were HTML errors (like 404) and bug reports about causing an error.  How do I obtain information about what the failure was available in the error callback?</p>