Expression: You needn’t have bothered

What is the correct response to the following statement?

I would have come if I could have.

A: Would you?
B: You needn’t have bothered.

I think only A is correct or would B work too?

Hi FrankU,

The two answers to your question have different meanings. Would you is a comment that doesn’t indicate any direction. You needn’t have bothered is a statement meaning: I don’t think that was necessary..