docs: def _raise_for_remote_status(url: str, data: dict) -> None:
      """Raise an error from the remote API if necessary."""
      if data.get('errorType') and data['errorType'] > 0:
          raise_remote_error(data['errorType'])
  
      if data.get('statusCode') and data['statusCode'] != 200:
          raise RequestError(
              'Error requesting data from {0}: {1} {2}'.format(
                  url, data['statusCode'], data['message']))