most barrel makers have a standard lenght,,38 42 or 44..some longer..i shoot a .40 swamped 44 inch Rice barrel and simply love it..
i guess if you really wanted a 40 inch,,,your could shorten it a couple of inches,,maybe best to do it from the breach end..