public function setHeaderResponse($statusCode, $message = '')
    {
        $this->statusCode = $statusCode;
        $this->message = $message;
        if ($message == '') {
            $this->message = self::$defaultMessages[$statusCode];
        }

        if (empty($this->message)) {
            throw new RestException('Invalid http response status code: ' . $statusCode);
        }

        return $this;
    }