Fix wrong length and type in the constructors of echo messages
Add constructor of error message