Correct error code on bulk docs failures