Moved error pages to php