When a new domain is attached, I made a logic to check whether the domain works normally through fetch.
fetch("https://" + domain).then((result)=>{
const isOk = result.status === 200
...
})
However, I thought it would be inefficient to fetch the entire HTML doc through fetch just to check if it works. How can I get only the status value?