Updates documentation to include examples for both req.flush and req.error in http testing examples. PR Close #23567