src/Webtrees/Mvc/MvcException.php
public function setHttpCode($http_code) {
        if(!in_array($http_code, self::$VALID_HTTP))
            throw new \InvalidArgumentException('Invalid HTTP code');
        $this->http_code= $http_code;
    }
public function setHttpCode($http_code) {
        if(!in_array($http_code, self::$VALID_HTTP))
            throw new \InvalidArgumentException('Invalid HTTP code');
        $this->http_code= $http_code;
    }
public function setHttpCode ( $ http_code ) { if ( ! in_array ( $ http_code , self :: $ VALID_HTTP ) ) throw new \ InvalidArgumentException ( 'Invalid HTTP code' ) ; $ this -> http_code = $ http_code ; }
Set the HTTP code

@param int $http_code
@throws InvalidArgumentException Thrown if not valid Http code
Set the HTTP code