title: Why doesn't angular $http data return error object
body: <p>I'm trying to return the twitter API error object <a href="http://jsfiddle.net/ECgb4/2/" rel="nofollow">in this jsfiddle</a>.</p>
  
  <p>Here's the error:</p>
  
  <pre><code>{
      errors: [
          {
              message: "Bad Authentication data",
              code: 215
          }
      ]
  }
  </code></pre>
  
  <p>Here's the code:</p>
  
  <pre><code>var myApp = angular.module('myApp', []);
  
  function MyCtrl($scope, $http) {
      $http({
          method: "GET",
          url: "https://api.twitter.com/1.1/statuses/user_timeline.json",
          responseType: "json",
          params: {
              screen_name: "StackCareers"
          }
      }).
      success(function (data, status, headers, config) {
          $scope.data = JSON.stringify(data);
      }).
      error(function (data, status, headers, config) {
          $scope.data = JSON.stringify(data);
      });
  }
  </code></pre>