Update the logic of determining whether to generate IHasResponseStatus for classes.