code: def check_error_code(self):
          
          # start off with STATUS_SUCCESS as a baseline
          status = NtStatusCodes.STATUS_SUCCESS
  
          error_code = self['errorCode']
          if error_code.isValue:
              # ASN.1 Integer is stored as an signed integer, we need to
              # convert it to a unsigned integer
              status = ctypes.c_uint32(error_code).value
  
          if status != NtStatusCodes.STATUS_SUCCESS:
              raise NTStatusException(status)
docs: For CredSSP version of 3 or newer, the server can response with an
          NtStatus error code with details of what error occurred. This method
          will check if the error code exists and throws an NTStatusException
          if it is no STATUS_SUCCESS.