Flanged pipe bend