Add error message to notify caller on internal server errors
@@ -46,6 +46,7 @@ public class Utils {
try {
JsonUtil.getNewJsonPayload(axis2MessageContext, payload.toString(), true, true);
} catch (AxisFault axisFault) {
+ axis2MessageContext.setProperty(Constants.HTTP_STATUS_CODE, Constants.INTERNAL_SERVER_ERROR);
log.error("Error occurred while setting json payload", axisFault);
}
axis2MessageContext.setProperty("messageType", "application/json");
