Redirecting to the error page of the host
<p>I've got a fairly general purpose PHP library which I'd like to use for a couple of different sites. The library serves up some content, but also detects error conditions, which is where my problems start. Trying to avoid redundant configuration, I've been attempting to get the server (or actually, been searching for documentation..) to serve up whatever error page it has configured, but haven't been able to come up with one single hint in either direction (possible or impossible). Maybe I'm not managing my search terms correctly, though.</p>

<p>Basically:</p>

<ol>
<li>Is it possible to redirect to the default error page of the current host from a PHP script?</li>
<li>If not in general, is it possible with mod_php in Apache?</li>
<li>If not, does anyone have another suggestion, how to solve the problem? :)</li>
</ol>

<p>I don't have access to this particular piece of configuration (at least, not on all servers), so redundant configuration is not even possible in all cases.</p>

<p>Thanks!</p>
