code: private void sendRecordFailedNotify(String reason) {
          Status failedStatus = new Status(StatusCodes.NS_RECORD_FAILED);
          failedStatus.setLevel(Status.ERROR);
          failedStatus.setClientid(getStreamId());
          failedStatus.setDetails(getPublishedName());
          failedStatus.setDesciption(reason);
  
          StatusMessage failedMsg = new StatusMessage();
          failedMsg.setBody(failedStatus);
          pushMessage(failedMsg);
      }
docs: Sends record failed notifications