title: HTTP Status 406 - Not Acceptable angularjs
body: <p>I know that this question is repeated but I search for solution in angular framework and I didn't find so what I do easily I send post request by <code>$http.post</code> angular object but the answer is <code>HTTP Status 406 - Not Acceptable</code> .
  The answer actually is a url link so I must configure server endpoint to produce 'text/plain' what is the wrong ? This is my code</p>
  
  <pre><code>$scope.sendOrder = function (orderObject) {
         // use $.param jQuery function to serialize data from JSON
          var baseUrl = platformOrigin + "/shopintegration/ws/" + PlatformService.user.getName() + "/subscription/order";
          var config = {
              headers : {
                 'Accept': 'text/plain'
              }
          };
          $http.post(baseUrl, orderObject, config)
          .success(function (data, status, headers, config) {
              $scope.PostDataResponse = data;
          })
          .error(function (data, status, header, config) {
              $scope.ResponseDetails = "Data: " + data +
                  "&lt;hr /&gt;status: " + status +
                  "&lt;hr /&gt;headers: " + header +
                  "&lt;hr /&gt;config: " + config;
          });
      };             
  </code></pre>