Amount of mortgage based on salary?

I know there are a lot of factors that go into getting approved for a mortgage. Not worrying about credit / down payment / debt is there a general rule of thumb for how much income one needs to make to qualify? For instance, how much would one have to make to qualify for $500,000 or even $800,000? Thanks.
16 answers 16