Skip to content

How to return 400 with a message on body decoding error? #13

@paluh

Description

@paluh

I want to return Bad Request response with my body parsing errors (returned by decodeBody) when a request contains invalid body. Currently I'm getting 404 with an empty body.

Do you think that it is a good idea? Is it possible to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions