def aiotus_error_http_status_is(e, code: int) -> bool:
    """
    Check status code returned from the tusd server.

    In case of errors, it must be the one passed from our backend.

    Input: ExceptionInfo and a status code.
    Output: Whether the exception contains the code.
    """
    return str(e.value).find(f"Wrong status code {code}") >= 0