fetch status 403 code example
Example: catch status code 403 in fetch
let response = await fetch(url1);
console.log(response.status);
if (response.status == 200) {
let resJSON = await response.json();
console.log(resJSON);
let data=resJSON;
} else {
console.log("ERROR");
}