const response = await fetch(..., options)
if(response.status == 200){
setDetails(response);
}