The same as http_error_301(), but called for the ‘temporary redirect’ response. It does not allow changing the request method from POST to GET.
urllib.request/HTTPRedirectHandler.http_error_307
HTTPRedirectHandler.http_error_307