True Costs of a Heloc?

I own a propery appraised at 1.46 million. The mortgauge balence is 486k. I need an extra 400k right away, to pay off a divorce settlement ordered to be paid in full. If I take a home equity loan, what kind of costs and fees are normally associated with the closing?