public function sendResponse($status, $param = array()) { $response = \Ouno\Ouno::getCoreClass('HttpResponse'); $this->response = new $response(); $this->response->setContentType($format); if ($status != 200) { $message = $this->response->getErrorMessage($status); $param = array_merge($message, $param); } $this->response->setStatus($status); $this->sendHeader(); echo $this->response->setBody($param); exit; }