OLINGO-1355: correcting the error code check

This commit is contained in:
Ramesh Reddy 2019-09-01 20:57:06 -05:00
parent 74587d98f5
commit 6c3781f178
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class BatchRequest extends ServiceRequest {
try {
txnId = handler.startTransaction();
partResponse = processChangeSet(part, handler);
if (partResponse.getResponses().get(0).getStatusCode() > 400) {
if (partResponse.getResponses().get(0).getStatusCode() >= 400) {
handler.rollback(txnId);
} else {
handler.commit(txnId);