[FEATURE] errors.php file

Just put errors management into a separate file, so routes.php and filters.php do not have to handle errors