'Should we redirect and where to?
:returns: Truthy redirect location string if we got a redirect status
code and valid location. ``None`` if redirect status and no
location. ``False`` if not a redirect status code.'

def get_redirect_location(self):

    if (self.status in [301, 302, 303, 307]):
        return self.headers.get('location')
    return False
