Skip to content

How to return an error message to the client via input_fn #1336

Closed

Description

@dshahrokhian

What did you find confusing? Please describe.
In none of the examples I've read, I have found an example of returning an error to the client, when the requested format is not supported.

I have tried raising ValueError within the method, but then the client just receives error 500, not the reason.

Describe how documentation can be improved
Including in readthedocs (for example, this documentat) an example on how we can return a particular error message to the client.

Activity

  1. laurenyu commented on Mar 17, 2020

    @laurenyu
    Contributor

    @dshahrokhian sorry for the delay in response here. what framework and framework version are you using? (the answer varies based on that)

  2. locked and limited conversation to collaborators on May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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