View Single Post
Old 11-04-2012, 12:08 PM   PM User | #1
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
ErrorDocument Without HTTP Response Code

I was wondering if this is viable. Consider this format:

ErrorDocument 400 /error.php?id=400
ErrorDocument 401 /error.php?id=401
ErrorDocument 403 /error.php?id=403
ErrorDocument 404 /error.php?id=404
ErrorDocument 500 /error.php?id=500

Could I simply use..

ErrorDocument * /error.php

.. and glean the response code from the headers instead? It would open up some new dynamic options for error handling.

P.S. I'm not sure what response codes are in the ErrorDocument scope. ErrorDocument * might be a silly idea in itself.
Custard7A is offline   Reply With Quote