protected function validateResponse($statusCode) {
        switch($statusCode) {
            case 204:
                throw new Exceptions\RateLimitException('Too many requests');
            case 403:
                throw new Exceptions\InvalidApiKeyException(sprintf('Key %s is invalid', $this->_apiKey));
            default:
                return;
        }
    }
protected function validateResponse($statusCode) {
        switch($statusCode) {
            case 204:
                throw new Exceptions\RateLimitException('Too many requests');
            case 403:
                throw new Exceptions\InvalidApiKeyException(sprintf('Key %s is invalid', $this->_apiKey));
            default:
                return;
        }
    }
protected function validateResponse ( $ statusCode ) { switch ( $ statusCode ) { case 204 : throw new Exceptions \ RateLimitException ( 'Too many requests' ) ; case 403 : throw new Exceptions \ InvalidApiKeyException ( sprintf ( 'Key %s is invalid' , $ this -> _apiKey ) ) ; default : return ; } }
Validate response by looking up the http status code
@param int $statusCode - http status code
@throw \VirusTotal\Exceptions\RateLimitException
@throw \VirusTotal\Exceptions\InvalidApiKeyException
Validate response by looking up the http status code