Allow redirect middleware HTTP responses to be overridden. refs #19321