abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Gendron" <r...@arrova.ca>
Subject RE: DELETE of inexisting resource... weak api
Date Wed, 09 Apr 2008 19:50:15 GMT
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,


-----Original Message-----
From: James M Snell [mailto:jasnell@gmail.com] 
Sent: April 9, 2008 15:22
To: abdera-dev@incubator.apache.org
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

View raw message