Use http::redirect(...) which exits on redirect.