title: Return Ok with empty list VS. No content
body: <p>I wrote a web API that returns 204 (No Content) when a client requests all elements on a collection but the collection is empty.</p>
  
  <p>For example: <code>/api/products</code> returns 204 when there are no products.</p>
  
  <p>Now my problem is that I'm trying to consume the API using Restangular like this:</p>
  
  <pre><code>Restangular.all('products').getList().then(function (products) {
      $scope.products = products;
  });
  </code></pre>
  
  <p>However this results in the following javascript error.</p>
  
  <blockquote>
    <p>Error: Response for getList SHOULD be an array and not an object or
    something else</p>
  </blockquote>
  
  <p>What gives? I can't find any information on handling no content in the <a href="https://github.com/mgonto/restangular">Restangular doc</a></p>
  
  <p>Am I using 204 wrong? Should I instead return 200 with an empty list?</p>