Is there any way to catch the exception from UrlFetchApp.fetch?
UrlFetchApp.fetch
I thought I can use response.getResponseCode() to check the response code,
response.getResponseCode()
why don't you use try catch and handle the error in catch block
try{ //Your original code, UrlFetch etc } catch(e){ // Logger.log(e); //Handle error e here // Parse e to get the response code }