Legality of humanitarian interventions

What problems emerge when considering the legality of humanitarian interventions either through or outside of the UN Security Council