title: How to read JSON error response from $http if responseType is arraybuffer
body: <p>I load some binary data using </p>
  
  <pre><code>$http.post(url, data, { responseType: "arraybuffer" }).success(
              function (data) { /*  */ });
  </code></pre>
  
  <p>In case of an error, the server responds with an error JSON object like</p>
  
  <pre><code>{ "message" : "something went wrong!" }
  </code></pre>
  
  <p>Is there any way to get the error response in a different type than a success response?</p>
  
  <pre><code>$http.post(url, data, { responseType: "arraybuffer" })
    .success(function (data) { /*  */ })
    .error(function (data) { /* how to access data.message ??? */ })
  </code></pre>