The Logic already detect error conditions (e.g. already Unpublished) and throw the correct exception. Over here, we can simply catch that exception and set the appropriate status message. No need to duplicate the check here.