Hi Bert, that's a REST Web Services convention. REST reuses a lot of the 
HTTP infrastructure, like methods, status codes, sone headers, etc.
Sent from my LG Mobile


------ Original message------From: Bert VerheesDate: Fri, Jan 16, 2015 8:18 
PMTo: For openEHR technical discussions;Subject:CRUD Restlet    I was looking 
at EHRScape, I should have posted this question there,    but the 
Community-page does not show any communication-means, only    adds.
    
    And maybe the question is also generic and are more people thinking    
about this.
    
    I am wondering about the HTTP-errors, they seem to be used for    
communicating application-errors.
    I think this could be an error.
    
    For example, if you look at the: DELETE      /demographics/party/{partyId}
        
        It can return a 404 with explanation: 404 Not found -      the 
specified party was not found (DEMO-6021).
      
      I think this is possible wrong, because on HTTP-level the call was      
an success, and should therefor return 200, meaning, the request      is 
received and understood, and processed.
      In the return-message it should IMHO, if necessary the result and      
error-message on application level.
      
      Someone thoughts about this?
      
      Thanks
      Bert
      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20150117/b0a2b4c0/attachment.html>

Reply via email to