using 302 http code for relay