2163. A person who has allowed it to be believed that a person was his mandatary is liable, as if he were his mandatary, to the third person who has contracted in good faith with the latter, unless, in circumstances in which the error was foreseeable, he has taken appropriate measures to prevent it.