Skip to content

HandlerError with body data #542

@rp-

Description

@rp-

Maybe this should be done different, but I would assume that I can additionally to modify the status_code of the HandlerError also add body data.
My use-case would be e.g.: parsing JSON data from the request and if there is a syntax error return the error message from serde(as body) with an UNPROCESSABLE_ENTITY status code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions