Client script: checking for problems when calling a connection
Hi everyone!
I'm writing a Client Script in which I need to use a Connection to call our custom ERP.
I'm doing something like:
and it works, so now I'm trying to build some error handling in my code.
As a first step, I'd like to test if there's a network problem, so I altered the url to something unexistent. In this case, res.code and res.status still contain "SUCCESS", is this normal?
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.