Axial and conformal anomalies for arbitrary spin in gravity and supergravity