Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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