Fetch, HTTP errors, and cancellation

Does fetch normally reject solely because the response is 404?

Examples

Worked example

Input
A server replies with HTTP 404.
Expected output
No.

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

You receive a response with ok false. The caller can raise its own error or show a missing-item message.

Back to the lesson