You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to return an error message to the client via input_fn #1336
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
laurenyu commentedon Mar 17, 2020
@dshahrokhian sorry for the delay in response here. what framework and framework version are you using? (the answer varies based on that)