Skip to content

Cloudfare status codes #507

Open
Open
@mihai-dinculescu

Description

@mihai-dinculescu

Cloudflare seems to be defining a few custom error codes in the 5xx area. Not cool, I know.
https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors

The StatusCode enum doesn't contain them, and this causes a panic in the Response constructor. https://github.com/http-rs/http-types/blob/main/src/status_code.rs

Is there a plan to add these error codes to the enum or to rework it in such a way that the Response constructor doesn't panic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions