private function sendAjaxResponse($error)
    {
        $message = [
            'err' => $error
        ];

        $this->getResponse()
            ->setHeader('Content-type', 'application/javascript', true)
            ->setBody(
                'signupCallback(' . $this->jsonHelper->jsonEncode($message) . ')'
            )
            ->sendResponse();
    }