Batch operation error handling improvement:

PUT/DELETE response message status is set to NOT_ATTEMPTED when error
occurred.

END_BATCH response message status is set to INVALID_BATCH when any of
the operation in the batch failed.