Server - returning HTTP status code

------- Forwarded Message

Return-Path: vu@isdnsys.com 
Return-Path: <vu@isdnsys.com>
Received: from www10.w3.org by www20 (5.0/NSCS-1.0S) 
	id AA12945; Wed, 14 Feb 1996 12:55:11 -0500
Received: from ISDNSYS-1.isdnsys.com (isdnsys.com) by www10.w3.org 
(5.0/NSCS-1.0S) 
	id AA00033; Wed, 14 Feb 1996 12:55:07 +0500
Received: from vu.isdnsys.com by ISDNSYS-1.isdnsys.com (NTMail 3.00.06) id 
aa001072 Wed, 14 Feb 96 17:52:20 +0000 (GMT)
Received: by vun.isdnsys.com with Microsoft Mail
	id <01BAFADC.60D60DA0@vun.isdnsys.com>; Wed, 14 Feb 1996 13:00:13 -0500
Message-Id: <01BAFADC.60D60DA0@vun.isdnsys.com>
From: Vu Nguyen <vu@isdnsys.com>
To: 'Henrik Frystyk Nielsen' <frystyk@w3.org>
Cc: 'Vu Nguyen' <vun@isdnsys.com>
Subject: Server - returning HTTP status code
Date: Wed, 14 Feb 1996 13:00:11 -0500
Return-Receipt-To: <vu@isdnsys.com>
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
X-Info: ISDN Technology Leaders
Content-Type: text/plain; charset="us-ascii"
Content-Length: 1638

I'm beating my head against the wall (: trying to get the Mini Server to =
return an HTTP/1.0 Status line of type 2xx

for right now, I replace the line "500 Internal" with "HTTP/1.0 200 " to =
get the server
to return a 200 status code, and for HT_ERROR in the terminate_handler()
I have the following:

/*start vun mod */
   switch(status)
   {
   case HT_ERROR:
 	{
	 HTStream * OutStream;
	 HTStreamClass * isa;
	 HTError * pres;
	 HTList * cur;

	 cur =3D (HTList*) HTRequest_error(request);
	 if(cur)
	 {
	 	int index;
	 	char buf[256];
	 	while((pres =3D (HTError*) HTList_nextObject(cur)))
	 	{
	 		index =3D HTError_index(pres);
	 		switch(index)
		 	{
			case    HTERR_NOT_FOUND:        /*404   */
                       			sprintf(buf, "%s<H1>Error %d</H1>
                              		Not found<HR>%s %s%s%c%c",
                              		"<HTML><HEAD><TITLE>Error</TITLE></HEAD>
                              		<BODY>", 404, APP_NAME, APP_VERSION,
                              		"</BODY></HTML>", CR, LF);
                           	break;

			default:
				goto zend;
			break;
			}//switch(index)
		  }
	}
	OutStream =3D HTRequest_outputStream(request);
            isa =3D OutStream->isa;
            (*isa->put_string)(OutStream, buf);
            (*isa->_free)(OutStream);
	}

   default:
	break; =09
   }//switch(status)

:zend:
/*end vun mod	*/

	<rest of org terminate_handler() code here>

------- End of Forwarded Message

Received on Wednesday, 1 May 1996 14:06:26 UTC