Created by: gferon
An Err(...) was returned for 1xx and 3xx status codes, which are totally valid response code and should be returned with Ok(...) instead.
Also removed a redundant use (found using clippy).
I filed this on the 5.1.x branch since I think it qualifies as a hotfix, but feel free to change it to something more appropriate.
Tagging @farcaller for the Rust review.