arvendrell

GSheets - Status code

Apr 26th, 2020
1,330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getStatusCode(url){
  2.    var options = {
  3.      'muteHttpExceptions': true,
  4.      'followRedirects': false
  5.    };
  6.    var response = UrlFetchApp.fetch(url, options);
  7.    return response.getResponseCode();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment