Answers for "catch status code 403 in fetch"

0

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");
		}
Posted by: Guest on April-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language