Break setHeaderStatus out of appController.