original_string: protected function checkResponseErrors(ResponseInterface $response)
  	{
  		$status = intval($response->getStatusCode());
  
  		if ($status === 200) return;
  
  		switch ($status) {
  			case 401:
  				throw new AuthorizationException($response);
  			default:
  				throw new RequestException($response);
  		}
  	}
code: protected function checkResponseErrors(ResponseInterface $response)
  	{
  		$status = intval($response->getStatusCode());
  
  		if ($status === 200) return;
  
  		switch ($status) {
  			case 401:
  				throw new AuthorizationException($response);
  			default:
  				throw new RequestException($response);
  		}
  	}
code_tokens: protected function checkResponseErrors ( ResponseInterface $ response ) { $ status = intval ( $ response -> getStatusCode ( ) ) ; if ( $ status === 200 ) return ; switch ( $ status ) { case 401 : throw new AuthorizationException ( $ response ) ; default : throw new RequestException ( $ response ) ; } }
docstring: Checks the given response for error codes, throwing the appropriate
  exceptions if needed.
  @param  ResponseInterface $response
docstring_tokens: Checks the given response for error codes throwing the appropriate exceptions if needed .