Open
Description
The web::http::http_request
has a method to allow user set response stream which will be filled with response content. However, no matter whether the HTTP status code indicates success (e.g. 2xx) or error (4xx, 5xx), the response content is always stored in this response stream.
Ideally, if the response coming with 4xx is the error message that needs different treatment, it'd be better to store it to another stream so that the response stream setup for expected content is not polluted. Especially when the stream is part of a pipeline, its content being instantly going to the next stage.