Neither trans is a direct swap, especially the th400.
Both the th350 and th700 have 27 spline tailshafts and a 4 bolt pattern on the back of the trans case so these are the more similar of the 2.
The th400 has a 32 spline tailshaft and a 6 bolt pattern on the back of the case.
The tailshaft spline count is important because it has to match the tcase.
All three of these transmissions have different length cases so anything other than another th350 will mean driveshaft changes and relocating the crossmember.
A th350 will be the simplest / cheapest way to go.
Ultimately, you need to contact local shops for pricing because regionally costs will be different and some shops simply may not want to do this type of work while others may have done it many times.