Handling error codes in Watson conversation

Hi all,

We are calling the watson api using node request npm. In this for some watson error cases like {“code”:500,”message”:”Forwarding error”}, {“code”:504,”message”:”Timeout Exceeded”}, we are still getting the http statuscode as 200.

So how should we handle the error condition? What will be the common error code that we can handle in our app in case of error?

Is there any particular HTTP statuscode that we can consider in common or is there any list of Watson error codes that we should handle?

Looking forward to a good solution as we are getting different errors each time.

Thanks in advance


Leave a Reply