code: protected function redirect($response, $uri)
      {
          $response->setStatusCode(302);
          $response->getHeaders()->addHeaderline('Location', $uri);
          return $response;
      }
docs: @param $response
  @param $uri
  
  @return mixed