You are right James, my unit tests confirm that 404 on a GET is associated with CLIENT_ERROR. Thus, the current response type of CLIENT_ERROR for a DELETE on a non-existant resource is OK.
I will enter the Jira for the logging issue. Thanks both, Remy -----Original Message----- From: James M Snell [mailto:[EMAIL PROTECTED] Sent: April 9, 2008 15:22 To: [email protected] Subject: Re: DELETE of inexisting resource... weak api Dan Diephouse wrote: > [snip] > 2. Fix the client side of it so it returns a SUCCESS on 404 and DELETE > [snip] -1. 404 is a client error as defined by RFC 2616. Defining it as a SUCCESS would be a bug and would break existing code. For 404, getType() should return CLIENT_ERROR and the client needs to check the status code. - James -- No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.10/1367 - Release Date: 09/04/2008 7:10 AM
