Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 83100 invoked from network); 27 Aug 2007 10:05:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2007 10:05:10 -0000 Received: (qmail 42057 invoked by uid 500); 27 Aug 2007 10:04:59 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 41981 invoked by uid 500); 27 Aug 2007 10:04:59 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 41964 invoked by uid 99); 27 Aug 2007 10:04:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 03:04:59 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.86.168.179] (HELO mxout-04.mxes.net) (216.86.168.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 10:05:41 +0000 Received: from [192.168.0.125] (unknown [80.240.191.89]) by smtp.mxes.net (Postfix) with ESMTP id A7BD9A3205 for ; Mon, 27 Aug 2007 06:04:26 -0400 (EDT) Message-ID: <46D2A1A7.2050309@apache.org> Date: Mon, 27 Aug 2007 12:04:23 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: http headers References: <46D20039.10406@tpg.com.au> <46D268C9.4090809@proventis.net> <46D27848.4080906@tpg.com.au> <1F74BCB22E62024DAF97A048D21822DA38F5E2@UTEX01.be-value.nl> <46D2990B.3020301@tpg.com.au> <46D299FF.5090204@apache.org> <46D29E9C.4090601@tpg.com.au> In-Reply-To: <46D29E9C.4090601@tpg.com.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org franco pace pisze: > Hi Grzegorz, > > I have been using cocoon for quite a while developing REST ish web > services. REST is now gaining > great momentum. Yes, even in Cocoon community, see this[1] e-mail. There has been some work in Cocoon that made 2.2 version much REST-friendly than 2.1. > REST relies heavily on HTTP protocol and in particular > in returning specific http status codes > under certain conditions. For example, say I have a pipeline that > exposes a db row (or resource): > > > ... > > Here the * would be an id of some sort. > > so i may wish the GET the entity at url - > http://myhost/cocoon/someentity/104 > > I would like for example, to set the http status code to 403 if the > client does not > have authority to view the data, and to say 404 if the entity does not > exist (not found). Why not to use flowscript for this? [1] http://article.gmane.org/gmane.text.xml.cocoon.devel/74571 -- Grzegorz Kossakowski http://reflectingonthevicissitudes.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org