title: UPPY: How to get json data returned from failed upload
body: <p>I am using Uppy javascript library with xhr plugin to upload files.
  How do I get the response data on a upload error?  The below does not provide the json returned from my service.  Documentation <a href="https://uppy.io/docs/xhr-upload/" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>uppy.on('upload-error', function (file, error) {
              console.log(error);
          });
  </code></pre>