We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 261038d + 55a9023 commit 00670b3Copy full SHA for 00670b3
1 file changed
src/response.rs
@@ -398,6 +398,13 @@ impl From<http::Response> for Response {
398
}
399
400
401
+impl From<StatusCode> for Response {
402
+ fn from(status: StatusCode) -> Self {
403
+ let res: http::Response = status.into();
404
+ res.into()
405
+ }
406
+}
407
+
408
impl From<String> for Response {
409
fn from(s: String) -> Self {
410
Body::from_string(s).into()
0 commit comments