easy5 pts · first answer countsjavascriptfetch-api
fetch and error status codes
The API returns 404 for this request. What happens?
try {
const res = await fetch('/api/orders/99')
const data = await res.json()
render(data)
} catch (e) {
showError()
}