unkarjedy opened a new pull request, #454: URL: https://github.com/apache/httpcomponents-core/pull/454
I was originally searching for a way to test that `HttpStatus` code was "successful". I didn't want to create a utility in my code base which checks `200 <= code && code < 300`, because it's a too frequent pattern. I found `org.apache.hc.core5.http.message.StatusLine.StatusClass#from` but I spent a couple of minutes for that. It would be much easier if it was mentioned in the `HttpStatus` JavaDoc, because those two entities are closely interconnected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org