Jaap has asked for the wisdom of the Perl Monks concerning the following question:
if ($sth->rows == 0)
{
$r->status(404);
#$r->print("Oops, there seems to be an error.");
ModPerl::Util::exit(0);
}
I'd like to print the actual document content that comes with the 404 error but whatever i try, Apache serves some standard error document instead.
Any idea how i can print the document body right from this piece of code?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl give 404 not_found with content
by Anonymous Monk on Apr 06, 2011 at 23:40 UTC | |
by Anonymous Monk on Apr 07, 2011 at 10:35 UTC | |
by Jaap (Curate) on Apr 07, 2011 at 10:39 UTC | |
|
Re: mod_perl give 404 not_found with content
by Khen1950fx (Canon) on Apr 07, 2011 at 00:26 UTC | |
by ikegami (Patriarch) on Apr 07, 2011 at 05:55 UTC | |
by Jaap (Curate) on Apr 07, 2011 at 10:38 UTC | |
by Anonymous Monk on Apr 07, 2011 at 12:56 UTC | |
by Jaap (Curate) on Apr 07, 2011 at 13:16 UTC | |
|