Abort the current request with a 307 (Temporary Redirect) 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 307

def raise_307(instance, location):
    """Abort the current request with a 307 (Temporary Redirect) 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 307
    """
    _set_location(instance, location)
    instance.response.status = 307
    raise ResponseException(instance.response)