title: Handle Status 304 response with AngularJS $http
body: <p>If i have one API server then the API is send ajax data with JSON format :</p>
  
  <pre><code>{"status":304,"message":"Cannot delete data where PK is empty or &gt; 1"}
  </code></pre>
  
  <p>how to AngularJS $http post call the status and message to alert bootbox?
  here my AngularJS $http post</p>
  
  <pre><code>$http({
    method: "POST",
    url: apiUrl('disable_assethw'),
    data: {
      id: id
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  }).then(function successCallback(response) {
    if(response.status == 304) {
      bootbox.alert("Something went error.." + response.data.message);
    } else {
      $scope.getAssetHW();
    }
  }, function errorCallback(response) {
    bootbox.alert("Something went error.." + response.status);
  });
  </code></pre>
  
  <p>thanks for advise.</p>