It's probably best to not fire any rifle or handgun ammunition into the air. If the ammunition has any kind of ballistic properties, then don't do it. Yeah, fired at or near vertical the bullet will not have much energy when it hits the ground, but...
A shotgun with birdshot is another matter
