Abort the current request with a 305 (Use Proxy) response code. Sets
    the Location header correctly. If the location does not start with a
    slash, the path of the current request is prepended.

    :param instance: Resource instance (used to access the response)
    :type instance: :class:`webob.resource.Resource`
    :raises: :class:`webob.exceptions.ResponseException` of status 305

def raise_305(instance, location):
    """Abort the current request with a 305 (Use Proxy) response code. Sets
    the Location header correctly. If the location does not start with a
    slash, the path of the current request is prepended.

    :param instance: Resource instance (used to access the response)
    :type instance: :class:`webob.resource.Resource`
    :raises: :class:`webob.exceptions.ResponseException` of status 305
    """
    _set_location(instance, location)
    instance.response.status = 305
    raise ResponseException(instance.response)