Handling API errors #1101
              
                Unanswered
              
          
                  
                    
                      avalladaresm
                    
                  
                
                  asked this question in
                General
              
            Replies: 1 comment 1 reply
-
| 
         Can you create a codesandbox example maybe? Happy to look into it 😊  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    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.
-
Is there a specific way to handle error messages from Expressjs for example?
Say I do
res.status(404).send({message:'this is the error message'}), is there a way to get that message on the onError callback using the useMutation hook? All I get from the error is a default error messageRequest failed with status code 404.Beta Was this translation helpful? Give feedback.
All reactions