Generates in the response a Location: header from the given
response_uri, and sets the response code to 302 or 301, depending
on whether permanent was 0 or 1. Defaults to 302 (temporary).
The Location header value must be an absolute URI, optionally
with a fragment. In the event of a relative URI, the base URI is
calculated from the request's Host header, if any, or from the
server's configured hostname and port.