you can check for response status to handle 404 or other errors use below example: fetch('your url goes here') .then(response => { if (response.ok) { return ...
確定! 回上一頁