Fix response codes for addresses not present in ips.

Also update the logic to use implicit boolean evaluation, invert the expression, and raise the HTTPError.
Merge pull request #86 from normanr/unauthorized

Fix response codes for addresses not present in ips.