public function setHttpCode($httpCode)
    {
        if (!array_key_exists($httpCode, $this->httpCodes)) {
            throw new \Parable\Http\Exception("Invalid HTTP code set: '{$httpCode}'");
        }
        $this->httpCode = $httpCode;
        return $this;
    }
public function setHttpCode($httpCode)
    {
        if (!array_key_exists($httpCode, $this->httpCodes)) {
            throw new \Parable\Http\Exception("Invalid HTTP code set: '{$httpCode}'");
        }
        $this->httpCode = $httpCode;
        return $this;
    }
public function setHttpCode ( $ httpCode ) { if ( ! array_key_exists ( $ httpCode , $ this -> httpCodes ) ) { throw new \ Parable \ Http \ Exception ( "Invalid HTTP code set: '{$httpCode}'" ) ; } $ this -> httpCode = $ httpCode ; return $ this ; }
Set the HTTP code to set when the response is sent.

@param int $httpCode

@return $this
@throws \Parable\Http\Exception
Set the HTTP code to set when the response is sent .