added errorCode and message getter for testing purpose