implemented 4xx and 5xx error pages

pull request for the 4xx and 5xx error handling