add addSubError() method of ErrorResponse