diff --git a/contentstack/build.gradle b/contentstack/build.gradle index 91635e58..2c78c7b4 100755 --- a/contentstack/build.gradle +++ b/contentstack/build.gradle @@ -10,7 +10,7 @@ android.buildFeatures.buildConfig true mavenPublishing { publishToMavenCentral(SonatypeHost.DEFAULT) signAllPublications() - coordinates("com.contentstack.sdk", "android", "3.12.5") + coordinates("com.contentstack.sdk", "android", "3.13.0-SNAPSHOT") pom { name = "contentstack-android" diff --git a/contentstack/src/main/java/com/contentstack/sdk/CSConnectionRequest.java b/contentstack/src/main/java/com/contentstack/sdk/CSConnectionRequest.java index 5ba1f8b8..6d5e532d 100755 --- a/contentstack/src/main/java/com/contentstack/sdk/CSConnectionRequest.java +++ b/contentstack/src/main/java/com/contentstack/sdk/CSConnectionRequest.java @@ -166,6 +166,7 @@ public void onRequestFailed(JSONObject error, int statusCode, ResultCallBack cal errorObject.setErrorCode(errorCode); errorObject.setErrorMessage(errorMessage); errorObject.setErrors(resultHashMap); + errorObject.setStatusCode(statusCode); if (this.callBackObject != null) { this.callBackObject.onRequestFail(ResponseType.NETWORK, errorObject); diff --git a/contentstack/src/main/java/com/contentstack/sdk/Error.java b/contentstack/src/main/java/com/contentstack/sdk/Error.java index 9c73990a..b0c1bb87 100755 --- a/contentstack/src/main/java/com/contentstack/sdk/Error.java +++ b/contentstack/src/main/java/com/contentstack/sdk/Error.java @@ -11,6 +11,16 @@ public class Error { String errorMessage = null; int errorCode = 0; + + public int getStatusCode() { + return statusCode; + } + + public void setStatusCode(int statusCode) { + this.statusCode = statusCode; + } + + int statusCode = 0; HashMap errorHashMap = new HashMap<>(); /**