Skip to content

Response::new panics with an invalid TryInto<StatusCode> #363

Open
@orbli

Description

@orbli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions