handle status code from remote script