none
handle errors in ews RRS feed

  • Question

  • Hi,

    I was trying to see how can I get service error codes returned in my code so I can do proper action.

    The two error I was able to generate were 404 and 401.

    404 generated when I gave wrong email account. The request failed. The remote server returned an error: (404) Not Found.

    401 generated when I gave wrong password.  The request failed. The remote server returned an error: (401) Unauthorized

    Is there any link where I can get list of all errors and I make my app to do proper action? 

    For instance, if server is not available, I would like my app to wait for 5 mins before retry.  How do I know the error code for server not available? 

    I m converting our existing VB6 app that uses MAPI to communicate with exchange.  It has handled following error codes and I need equivalent in EWS.

    Const MAPI_E_NOT_FOUND      As Long = -2147221233
    Const MAPI_E_SEND_FAILURE   As Long = -2147467259
    Const MAPI_E_FAILONEPROVIDER As Long = -2147221219

    Any help much appreciated.

    Thanks,

    Wednesday, November 30, 2016 5:17 AM