Is there a way to display a error message depending on the membership account status
What sort of scenario are you thinking of?
When a members account is pending approval and you try login it says "Those details do not match our records."
what i want to do is display different error messages depending on the account status
if pending display this ...
if inactive display this ...
No, there's no way to do that.
I would suggest that you should be very careful when thinking about changing any standard "Those details are not correct.." type message.
If you were able to reply with "I'm sorry, your membership is pending, come back soon" or something similar and someone tries to hack the site then you will have just told them that they have a valid username/ password pair :)
The standard "Details are wrong.." for any site gives away the least information.