Skip to content

[Feature Request] Robyn providing Status Codes? #423

Closed
@carlosm27

Description

It would be more appropriate if Robyn provides status codes instead of hard coding them?
I create a branch with "status.py" file in it, it is a copy/paste of Starlette HTTP status code.

Current Behavior
Hard coding the status code like:

return {
        "status_code": 200,
        "body": "some body",
        "type": "text",
  
    }

Desired Behavior
Robyn providing status codes like:

return {
        "status_code": status.HTTP_200_OK,
        "body": "Some body",
        "type": "text",

    }

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions