You receive $ENV{'REDIRECT_STATUS'} when doing internal redirects, which I think is what you're asking for. You could of course also pass it in the parameter string, or put it in the path and pull it out of the dhandler_arg, allowing you to do an external redirect. It all depends on how you want to define ErrorDocument.
ErrorDocument 404 /errors/page ErrorDocument 410 /errors/page?status=410 ErrorDocument 412 http://apacheerrors.net/funky/412 ErrorDocument 412 /errors/412.html Note the caveats in http://httpd.apache.org/docs/X.X/mod/core.html#errordocument and http://httpd.apache.org/docs/X.X/custom-error.html (where X.X is 1.3 or 2.0). RJ Daniel Austin wrote: > Hi > > I have a setup in Apache where ErrorDocument points at a path that is > actually handled by Mason. If a user gets a 404 then Apache will do an > internal sub-request to this error page which can show some > suggestions for what to do. > > But I need the page to determine if the original error code was 404 or > 500 (or 401, 403, etc). > > For bonus, I'd like to change some 404's to 410 since I'll know that > the page used to exist but has now gone. > > Does anyone know how I can do this? > > Thanks > > Dan > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users