Skip to content

Simplify status codes for Falcon integration #12

@vytas7

Description

@vytas7

Hello, and thanks for implementing the Falcon integration among supported frameworks!

I just wanted to suggest a minor simplification to that integration wrt setting status codes, e.g., here.

In Falcon, resp.status can be set not only to Falcon's dedicated constants, but also to integer status codes, as well as to instances of http.HTTPStatus. See more here: Status Codes.

So hopefully the major part, if not all, of those translation mappings and utility methods can go away 😈

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions