Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 58001 invoked from network); 15 Jun 2009 11:24:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jun 2009 11:24:43 -0000 Received: (qmail 71402 invoked by uid 500); 15 Jun 2009 11:24:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71383 invoked by uid 500); 15 Jun 2009 11:24:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 71374 invoked by uid 99); 15 Jun 2009 11:24:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 11:24:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.146.29.98] (HELO mail.icetrak.net) (83.146.29.98) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 11:24:42 +0000 Received: from alanPC ([192.168.42.119]) by mail.icetrak.net (8.13.6/8.13.6) with ESMTP id n5FBOKF5018724 for ; Mon, 15 Jun 2009 12:24:20 +0100 From: "Alan Wilson" To: Date: Mon, 15 Jun 2009 12:22:13 +0100 Organization: Icetrak Ltd Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_129C_01C9EDB3.ECD91B70" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 Thread-Index: Acntq4gCWuUG81sBR0qShGS6p1vKiA== X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Custom Error Handling ------=_NextPart_000_129C_01C9EDB3.ECD91B70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I'm trying to get httpd to return a custom error code via a CGI, eg if the client makes a connection to test.cgi (which is a valid URI) but the parameters, POST data or some other aspect of the interaction is incorrect I want to return a different error code from the standard 200, eg "Status: 303 You've not included valid data" Is this possible and if so, what part of Apache do I need to change ? Hope the request makes sense ! Thx in advance, Alan Alan Wilson Icetrak Ltd | v:08454560561 | f:08708895005 | e:awilson@icetrak.net ------=_NextPart_000_129C_01C9EDB3.ECD91B70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
 
I'm = trying to get=20 httpd to return a custom error code via a CGI, eg if the client makes a=20 connection to test.cgi (which is a valid URI) but the parameters, = POST=20 data or some other aspect of the interaction is incorrect I want to = return=20 a different error code from the standard 200, eg  "Status: 303 = You've not=20 included valid data"
 
Is = this possible and=20 if so, what part of Apache do I need to change ?
 
Hope = the request=20 makes sense !
 
Thx in = advance,
 
Alan
 
Alan Wilson
Icetrak Ltd | = v:08454560561 |=20 f:08708895005 | e:awilson@icetrak.net
 
------=_NextPart_000_129C_01C9EDB3.ECD91B70--