title: Angular 1.4.8: $http.post Prevent JSON.parse of angular
body: <p>I am using angular 1.4.8 and here is my $http.post</p>
  
  <pre><code>return $http.post($rootScope.api_url + '/jhandler', {
                 data: JSON.stringify({
                     'customerId': cID,
                     'method': 'getJ',
                     'data': data
                 }),
                 headers: {'Content-Type': 'application/json; charset=utf=8'}
             });
  </code></pre>
  
  <p>The response is not in json format due to some reason. Here I am facing 2 problems. </p>
  
  <ul>
  <li>404 error in console.</li>
  <li>angular trying to parseJson throw exception in console.</li>
  </ul>
  
  <p>404 error is okay for me. AngularJS parse the respone using JSON.parse and I want it to not parse. I want to intercept/override that function of angular which handle response. </p>
  
  <p><a href="https://i.stack.imgur.com/4YI5f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4YI5f.png" alt="I really need to hide these errors"></a></p>