It's going to be hard to properly correct your current pipe. If you bevel your angles, it won't give a good curve on the whole angle. Or you can simply try to apply a Subdivision Surface modifier.
Your current shape:

With a Subdivision Surface modifier:

If you apply the modifier (here with a subdivision level of 1):

A fun way to make pipes is first to create with simple vertex extrusions:

Then bevel the angles (Ctrl + B and tweak the parameters in the Operator box):

Convert your mesh to a Bézier curve (header menu → Object → Convert To → Curve):

Then bevel your curve to give it thickness (Properties panel → Object Data → Geometry → Bevel). After that, reconvert to mesh, give it a Subdivision Surface modifier, and a smooth shading...
