While I agree with Ms. Gladstone about the seller paying these fees for residential property, many sellers do try to put them on the buyer. A sharp broker and your attorney will look out for this ploy and nip it in the bud.
While it is common practice for new Condo construction to throw these taxes on the buyer, even they have been negotiable since the market softened. Prior to this current market, there was simply no room to negotiate as developers were adamant. The problem there is you would pay the tax for buying and later when you sold, you would pay it yet again!
Here's the percentages. At $400K the amount of transfer tax for the City is 1% ($4K) of the purchase price. The State takes less at .004% ($1600). If the amount was $500K or more the City would impose the tax at 1.425% while the State percentage would remain the same. If you bought a home at $1M or more, the City has a little invention called the "Mansion tax" which would be yet an additional 1% of the total price.
I hope this helps. Good luck with your purchase.
Again...the SELLER pays transfer tax.