error messages are replaced by an error object which contains detailed informations about the error