def METHOD_NAME(self) -> int:
    """
    Queries status register
    Returns:
        0 if there is no error
    """
    msg = super().ask('*ESR?')
    nums = list(map(int, re.findall(r'\d+', msg)))
    return nums[0]