Client script: checking for problems when calling a connection

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:

var res = ZDK.Apps.CRM.Connections.invoke("myerp", "https://our.url/path",  "POST", 1, parameters, headers);

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


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      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

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方