Re: removeRepresentations and setAvailable

2008-11-21 Thread Richard Hoberman
Thanks, Thierry. I hadn't considered this from an idempotence point of view, but that makes sense. Regards Richard Thierry Boileau wrote: Hello Richard, after having a look at the HTTP specification (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7), a successfull delete

Re: removeRepresentations and setAvailable

2008-11-20 Thread Thierry Boileau
Hello Richard, after having a look at the HTTP specification (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7), a successfull delete operation is denoted by a successful status (200, 202 or 204) but at the same time the 404 status expresses the fact that the underlying resource

removeRepresentations and setAvailable

2008-11-19 Thread Richard Hoberman
Hi I'm testing my system to see how it handles a DELETE request to a non-existent resource. I'm expecting a 404 response. Although I'm flagging my resource as unavailable in the constructor/init method removeRepresentations still gets invoked, which means I have to explicitly handle the 404