How to return an error message to the client via input_fn
              
              #2380
            
            
              
                Unanswered
              
          
                  
                    
                      dshahrokhian
                    
                  
                
                  asked this question in
                Help
              
            Replies: 1 comment
-
| @dshahrokhian sorry for the delay in response here. what framework and framework version are you using? (the answer varies based on that) | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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
ValueErrorwithin 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.
Beta Was this translation helpful? Give feedback.
All reactions