I'd be surprised if, for instance, seducing someone and getting laid by pretending to be substantially wealthier than you are was considered rape. Even pretending that you aren't a convicted felon when you are one would probably not constitute rape. I'd also be surprised if a woman who lied about being a virgin (and maybe had hymenoplasty) was prosecuted as a rapist by her devout husband.
My guess would be that it's considered rape if the deception made the victim believe they had to have intercourse with the liar. If the lie merely made the liar more desirable, it's (possibly unethical) seduction.
This hypothesis would mean, to come back to the original case, that:
* telling you're not a cop when you actually are one is not rape;
* telling that you're a cop when you aren't, and hitting that a sexual favor would buy you some leniency, does constitute rape.
http://www.theguardian.com/uk-news/2015/nov/12/gayle-newland...
There are other coses from different places. A Jewish woman was told by a man that he was also Jewish. They had sex. He was in fact not Jewish, and he was convicted.
http://www.telegraph.co.uk/news/worldnews/middleeast/israel/...
I think the law is looking at what consent actually means.