refactor res.status=