Open
Description
Right now conversion from http::StatusCode
(which is just an u16
in 100..=600
range) to StatusCode
just expect()s the result for example here:
Lines 101 to 103 in 5396382
this could cause a crash in response conversion for example here:
http-types/src/hyperium_http.rs
Line 123 in 5396382
if some server responds erroneously with some status that belongs to 100..=600 range but is not implemented in StatusCode
enum (for example 229), the conversion From<http::Response<Body>> for Response
will panic despite it being From
and not TryFrom