So I'm trying to create a custom error page which will basically be an umbrella for all errors. However, I need to know how to output the specific error code returned for this.
I've searched, but it's starting to look like it's impossible without using PHP. If this is indeed the case, is there a danger of using PHP and then having the request fail before the PHP parser goes through the code? Maybe my logic is a tad backward, but I've seen people handle 500 errors with custom error documents, and I'm already a tad confused when it comes to the order in which the server processes the different parts of the request.
Any help would be appreciated!