http-rs / http-rs/http-types

Response::new panics with an invalid `TryInto<StatusCode>`

Open
#363 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
209
Forks
91
PR merge metrics
No merged PRs in 30d

Description

Hello http-types dev.

I'm facing a situation where `http_types/response.rs:L63` will throw out a panic. I'm well aware that this case is very impossible but I still often encounter it with connection to some third-party software, and hence would like you to turn it into returning error instead of throwing a panic that I cannot handle on my side.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.