refactor router class; extraced four oh four response; extracted rootDir