Fetch

Basic

async function getData() {
	let responce = await fetch('url')
	let data = await responce.json();

	// let data = await response.text(); 
	// incase it comes as a text folder
}

Status information

console.log(response.status); // 200
console.log(response.statusText); // OK