<?php
if(isset($_GET['e'])) {
switch($_GET['e']) {
case 404:
//code for the 404 error here
break;
//for each error (for example the 500 error) you just add another case: the number and add a break; at the end of the code for that error.
}
}
?>