Added exit statements to 401 status responses