/** * Renders a JSON encoded error response */ private function _renderJson() { $data = $this->_getOutputData(false); $data = $this->filterEvent('renderJson', $data); $response = new Response(); $response->setJson($this->_status_code, $data); $response->send(); exit; }