There isn't.
At least, where gamma/röntgen radiation are concerned. Mass is the only thing that stops that stuff... no, "stops" is the wrong word, even mass only absorbs a percentage of gamma radiation, some will always statistically get through the thickest wall of lead you could imagine.
Mind you, any kind of mass works just fine, it's the amount of mass that is important... or rather, the density of the matter and the thickness of the "wall". Lead is commonly used radiation shielding material because it's conveniently dense and thus you don't need to stack it as thick as, say, concrete, steel or water. In a case of space ship, the best bet is to have the ship big enough to work as radiation shielding and have a natural "shelter" zone in the middle. Alternatively, it could be possible to only shield one part of the ship to work as a shelte, or shield the whole ship sufficiently so that it's safe to hang out anywhere during the fiercest radiation conditions imaginable.
Obviously, the problem with first method is the general scope. The second method is possibly the most sensible. Both of these solutions require a sufficient warning time to evacuate the crew to the shelter before intense radiation conditions. The third one doesn't have these problems, but instead it means that the mass/payload ratio of the ship will reduce dramatically.
Particle radiation is easier to stop completely than electromagnetic ionizing radiation, but even that requires rather thick walls on the space ship or radiation shelter. Or a magnetic field strong enough - perhaps it would be possible to actually use the coils of tokamak fusion reactor to generate a strong external magnetic field, which would guide the brunt of particle radiation to the poles of the ship.