Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78193 invoked from network); 25 Jan 2011 16:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2011 16:49:04 -0000 Received: (qmail 97644 invoked by uid 500); 25 Jan 2011 16:49:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 97595 invoked by uid 500); 25 Jan 2011 16:48:59 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 97586 invoked by uid 99); 25 Jan 2011 16:48:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 16:48:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.80] (HELO qmta08.westchester.pa.mail.comcast.net) (76.96.62.80) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 16:48:52 +0000 Received: from omta11.westchester.pa.mail.comcast.net ([76.96.62.36]) by qmta08.westchester.pa.mail.comcast.net with comcast id zsmB1f0060mv7h058soY29; Tue, 25 Jan 2011 16:48:32 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta11.westchester.pa.mail.comcast.net with comcast id zsoX1f00g38FjT13XsoXG3; Tue, 25 Jan 2011 16:48:32 +0000 Message-ID: <4D3EFEE0.1010801@christopherschultz.net> Date: Tue, 25 Jan 2011 11:48:32 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: 400 error when a request does not map to a context X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Tomcat 6.0.29 and Tomcat 7.0.6 both behave this way. With no ROOT context deployed, make a request to something that doesn't map to a deployed webapp, like "/nocontext" or even "/" and you'll get a 400 Bad Request. HTTP Spec says 400 means "The request could not be understood by the server due to malformed syntax" but the request is perfectly valid. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0+/uAACgkQ9CaO5/Lv0PDTGgCdGsI9IKkZapKQarJQPlHMUp65 TlEAnRaRJwLLHnIfZwbn32W3p1/SgQAg =h+lx -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org