public function setHttpCode($http_code) {
        if(!in_array($http_code, self::$VALID_HTTP))
            throw new \InvalidArgumentException('Invalid HTTP code');
        $this->http_code= $http_code;
    }