@classmethod
def send_error(cls, channel, status, msg, **extra):
    """Send a control packet with an error"""
    error = {'service': 'remote-file', 'type': 'error', 'status': status,
        'msg': msg}
    error.update(extra)
    channel.send_control(error)
