title: Which HTTP code to use for an empty subresource in a REST API?
body: <p>Let's say I've a resource <code>articles</code> at <code>/articles</code>.</p>
  
  <p>These articles may have related articles, so I fetch them by GETting <code>/articles/{id}/related</code>.</p>
  
  <p>What should I return is there is no related articles?</p>
  
  <p>I can think of:</p>
  
  <ul>
  <li><code>404 Not Found</code>, maybe with an empty collection</li>
  <li><code>204 No Content</code></li>
  <li><code>200 Found</code> with an empty collection</li>
  </ul>
  
  <p>Any advices? (please give arguments)</p>
  
  <p>By the way, it may applies to pagination. If I request page 3 of 2, then the page 3 will return an empty set, should It be a <code>404</code>?</p>