Commit a1729340 by Adi Amir

improve error response

parent 369764b8
Showing with 2 additions and 2 deletions
......@@ -466,11 +466,11 @@ public class CiscoManager {
private BaseRestResponse errorHttpResponse(SimpleHttpResponse httpResp) {
BaseRestResponse errResp = new BaseRestResponse(false, null);
ObjectNode objectNode = objMapper.createObjectNode();
objectNode.put("statusCode", httpResp.getStatusCode());
objectNode.put("content", httpResp.getContent());
errResp.objectNode = objectNode;
BaseRestResponse errResp = new BaseRestResponse(false, objectNode.toString());
return errResp;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment