delete unused error-code parameter