def METHOD_NAME(url, rsp):
    """If response error, raise exception
    Args:
        url (str): The request url
        rsp (HTTPResponse): The server response.
    Raises:
        RequestError: the http request error.
    Returns:
        bool: `True` if request is OK, otherwise raise `RequestError` exception.
    """
    if rsp.get('Code') == HTTPStatus.OK:
        return True
    else:
        raise RequestError(
            f"Url = {url}, Message = {rsp.get('Message')}, Please specify correct dataset_name and namespace."
        )