Instance Property
isSuccess
true when the status code is in the 2xx range.
var isSuccess: Bool { get }
Discussion
Classifies statusCode against the HTTP-like convention used by Tor’s control protocol: 2xx = success, 4xx/5xx = error, 6xx = asynchronous event. Prefer this over direct statusCode == 250 comparisons so 251 replies (“command accepted but operation unnecessary”) aren’t treated as errors.