title: Why 422 (Unprocessable Entity) showing?
body: <p>I am using a <code>delete</code> method in angular js,</p>
  
  <p><strong>Controller</strong> :</p>
  
  <pre><code>$scope.delete = function(object) {
       $scope.deleteobject = {"id":object.id}
       authService.deletedetails($scope.deleteobject).success(function(data, status) {
           console.log("succesfully deleted");
       }).error(function(data, status) {
           console.log("data:",data);
           console.log("status",status);
       });
  }
  </code></pre>
  
  <p><strong>Service</strong> is</p>
  
  <pre><code>service.deletedetails = function(user) {
    return $http.delete('/api/delete', user);
  
  }
  </code></pre>
  
  <p>everything is correct, but still showing the <code>error</code>, but <code>delete</code> work in the <code>rest api</code> app.</p>
  
  <p>Facing Error :- </p>
  
  <p><code>DELETE localhost:8100/api/delete 422 (Unprocessable Entity) Entryview.js:44 data: Object {Message: "Not Deleted"} Entryview.js:45 status 422 Entryview.js:47 config Object {method: "DELETE", transformRequest: Array[1], transformResponse: Array[1], id: 23, url: "/api/delete"…} –</code></p>