protected function setHttpCode($httpCode = null)
    {
        if ($httpCode !== null) {
            $this->httpCode = (int) $httpCode;

            if (!HttpCode::exists($this->httpCode)) {
                throw new \DomainException('Http Code does not exist! (code: ' . $this->httpCode . ')');
            }
        }

        return $this;
    }
protected function setHttpCode($httpCode = null)
    {
        if ($httpCode !== null) {
            $this->httpCode = (int) $httpCode;

            if (!HttpCode::exists($this->httpCode)) {
                throw new \DomainException('Http Code does not exist! (code: ' . $this->httpCode . ')');
            }
        }

        return $this;
    }
protected function setHttpCode ( $ httpCode = null ) { if ( $ httpCode !== null ) { $ this -> httpCode = ( int ) $ httpCode ; if ( ! HttpCode :: exists ( $ this -> httpCode ) ) { throw new \ DomainException ( 'Http Code does not exist! (code: ' . $ this -> httpCode . ')' ) ; } } return $ this ; }
Set http code for the header

@param  int $httpCode
@return self
@throws \DomainException
Set http code for the header