Return better per-doc error status from _bulk_docs

The error status being returned wasn't correctly interpretable by TouchDB,
so the replicator couldn't discern whether the issue was a validation
failure (403 or 401) or not.