Humanitarian interventions

When, if ever, are humanitarian interventions legal under existing jus ad bellum rules?