Flange ratings are defined in ASME B16.5 for the different materials at different temperatures (e.g. 150# CS flange -material group 1.1 - has a rating of 285 psi at 100F)
For pipe, it's a different story. It all depends on the piping code you are using to design your system. Different piping codes has different formulas for calculation of pipe wall thickness and different allowable stresses (even for the same material).
For example, ASME B31.3 require that the mil tolerenance be subtracted from the nominal wall thickness when calculating the pressure rating, where B31.4 uses nominal wall thickness for that calculation. Also, B31.3 uses a 0.85 weld joint efficiency factor on welded pipe where B31.4 use a joint efficiency facor of 1 on most ERW pipe. These variations, in addition to the different allowable stress, produce vastly different results among different codes.
You need to determine which code you are using for the piping system first, then look up the fomula in the appropiate code.