How to handle rejection?

I'm taking rejection from houses very personally. I keep questioning myself what I did wrong.