response->setStatusCode(404); // Get the request uri to pass to google :) $uri = ltrim($this->request->getURI(), '/'); $uri = str_replace('/', '+', $uri); $this->view->url = $uri; } }