reverted back succes messge and added errorCode