Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 26211 invoked from network); 10 Nov 2010 16:46:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 16:46:05 -0000 Received: (qmail 14964 invoked by uid 500); 10 Nov 2010 16:46:36 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 14909 invoked by uid 500); 10 Nov 2010 16:46:36 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 14901 invoked by uid 99); 10 Nov 2010 16:46:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 16:46:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dirkx@webweaving.org designates 213.207.101.183 as permitted sender) Received: from [213.207.101.183] (HELO pikmeer.webweaving.org) (213.207.101.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 16:46:28 +0000 Received: from neep.dmi.dev.local (ge2-0.rt2.rbsov.bbc.co.uk [212.58.239.38]) (authenticated bits=0) by pikmeer.webweaving.org (8.14.4/8.14.4) with ESMTP id oAAGZX7w014844 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 10 Nov 2010 16:35:35 GMT (envelope-from dirkx@webweaving.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Any standard on picking a response status out of several possible? From: Dirk-Willem van Gulik In-Reply-To: Date: Wed, 10 Nov 2010 15:42:07 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <9F56D84D-18CE-4FE5-91EA-00A6FF1BFAD5@webweaving.org> References: To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1081) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.5 (pikmeer.webweaving.org [213.207.101.183]); Wed, 10 Nov 2010 16:35:35 +0000 (UTC) On 10 Nov 2010, at 14:42, Dan Poirier wrote: > If multiple response statuses would be valid for a request (e.g. 403, > 413), is there any standard on how to pick one? I looked through RFC > 2616 but didn't see anything. Or is it just an implementation detail? This was subject of a fair bit of debate at the time; and from what I = recall it was tried to reduce this to a non issue (i.e. letting the = implementor make the call) by fairly carefully having the 2x/3x and 4x = meaning right (success, retry with extra info and no-go) - along with = making sure that the higher numbers are increasingly more narrow in = their scope - with the assumption that implementors would only use those = if the semantics where truly applicable and 'actionable' by a client. Guess that does not answer the question - but in your example 403 = (forbidden) vs 413 (too large) - one probably wants to ask the question = - is there anything the client can do (perhaps change some POST/form = parameter to reduce the requested size) - or is it purely forbidden = because if its size. If it is the first I'd do a 413 (so smarter clients = can reduce what they get) and distinguish it form a 403 lost case - = while if it is the latter - a 403 will be more meaningful to a wider = range of clients. Hope that helps, Dw=