From fd6670aa20b7f739beea8e4d6f9894539b7311e2 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Tue, 8 Oct 2024 18:44:28 +0530 Subject: [PATCH] chore: removed error code part --- src/main/java/com/contentstack/sdk/CSHttpConnection.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/contentstack/sdk/CSHttpConnection.java b/src/main/java/com/contentstack/sdk/CSHttpConnection.java index 95ea130b..e3c44d65 100644 --- a/src/main/java/com/contentstack/sdk/CSHttpConnection.java +++ b/src/main/java/com/contentstack/sdk/CSHttpConnection.java @@ -281,7 +281,6 @@ void setError(String errResp) { // If errResp is not valid JSON, create a new JSONObject with the error message responseJSON = new JSONObject(); responseJSON.put(ERROR_MESSAGE, errResp); - responseJSON.put(ERROR_CODE, "unknown"); } responseJSON.put(ERROR_MESSAGE, responseJSON.optString(ERROR_MESSAGE)); responseJSON.put(ERROR_CODE, responseJSON.optString(ERROR_CODE));