title: REST POST duplicate list item
body: <p>I have a REST resource which contains a list of items.</p>
  
  <p>e.g.: GET <a href="http://myurl/rest/items" rel="nofollow">http://myurl/rest/items</a></p>
  
  <p>The items do not have an id at the moment. (but that doesn't really matter)
  The list should not contain duplicates. Duplicates are determined based on the properties of an item.
  When a new item is created, it should be added to the top of the list. When the item already exists, it should be moved to the top of the list.</p>
  
  <p>We implemented this now by using a post which returns a 201 when the item is new. It can just be added to the top of the list. When the item already exists, the item is moved to the top of the list and we return a <a href="http://httpstatus.es/205" rel="nofollow">205 RESET CONTENT</a>.
  This is an indication to the frontend that it needs to refresh the item list.</p>
  
  <p>This seemed like a good solution as it is easy to understand, altough I am not sure if it is the most 'restful' solution? Also, I am not sure if this is a correct usage of the 205 http code?</p>
  
  <p>If there are any other suggestions, I would like to hear them.</p>
  
  <p>Thanks!</p>