For the unauthorized case (401), you can check the status code.
2015-03-20 17:53:21.265 DemoProject[342:66956] WARNING: CBL_Puller[http://127.0.0.1:4984/votings]: Unable to save remote checkpoint: Error Domain=CBLHTTP Code=401 "401 unauthorized" UserInfo=0x170c78d80 {NSURL=http://127.0.0.1:4984/votings/_local/41ac43b2653ee4e94f16092bfeea9b9c486e7c1a, NSLocalizedFailureReason=unauthorized, NSLocalizedDescription=401 unauthorized}