private function returnError($errorMessage) { $data = array('error' => $errorMessage); return new \Ip\Response\Json($data); }