We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b171b commit 8a6b9d1Copy full SHA for 8a6b9d1
src/main/java/com/contentstack/sdk/CSHttpConnection.java
@@ -281,7 +281,6 @@ void setError(String errResp) {
281
// If errResp is not valid JSON, create a new JSONObject with the error message
282
responseJSON = new JSONObject();
283
responseJSON.put(ERROR_MESSAGE, errResp);
284
- responseJSON.put(ERROR_CODE, "unknown");
285
}
286
responseJSON.put(ERROR_MESSAGE, responseJSON.optString(ERROR_MESSAGE));
287
responseJSON.put(ERROR_CODE, responseJSON.optString(ERROR_CODE));
0 commit comments