>,</span> <span class="n">req</span><span class="p">,</span> <span class="kc">None</span><span class="p">,</span>
                               <span class="n">error_from_response</span><span class="o">=</span><span class="n">_get_location_error</span><span class="p">,</span> <span class="n">copy_request</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span></div></div>


<span class="nd">@handle_common_header_errors</span>
<span class="k">def</span> <span class="nf">_get_locat