added CHttpExceptions to handle errors via error page