Legal aspects of measures taken in reaction to coronavirus