title: How can I get the response header error from JavaScript?
body: <p>Using Laravel - </p>
  
  <pre><code>abort(403, 'This is an exception message.');
  </code></pre>
  
  <p>How can I access this message from my JavaScript?</p>
  
  <pre><code>// Get the project based on projectID.
  $.ajax({
      type: 'GET',
      url: '/api/projects/getProject/' + projectID
  }).done(function(response){
      ProjectStore.getProjectSuccessful(response);
  }).error(function(error){
      console.log(error)
  });
  </code></pre>
  
  <p>My <code>error</code> object has a <code>statusText</code> property of 'Forbidden', and a <code>responseText</code> property that contains the entire HTML (in which I can see my error message) - but is there an easy way to access that message from my error object without parsing through the HTML?</p>