How about returning a self-designed error page, instead of using Apache's? ----- Original Message ----- From: "Geoffrey Young" <[EMAIL PROTECTED]> To: "Andrew Ho" <[EMAIL PROTECTED]> Cc: "mod_perl List" <modperl@perl.apache.org> Sent: Sunday, February 05, 2006 2:24 AM Subject: Re: How to set Content-Type header on custom_response()?
> > > Andrew Ho wrote: > > Hello, > > > > I have a mod_perl (Apache 1.3.33, mod_perl 1.29) handler which returns > > HTTP error codes on several conditions, and uses a custom_response() to > > set a custom body. The custom body is XML (this is a middleware > > component and errors are read by machines, not humans), so I'd like to > > send a > > "Content-Type: text/xml" header. > > sorry, but you just can't do it. see this from the archives > > http://www.mail-archive.com/modperl@apache.org/msg20549.html > > --Geoff