added errorCode