Skip to main content

Accepted Answer · #34 · 2026-05-08

Which answer is correct?

Difficulty 2/3

How to play

Read the Stack Overflow–style question, then pick the one correct answer from four plausible options. Watch out — wrong answers often have high fake votes.

How to properly handle errors with fetch()?

My fetch call doesn't catch 404 or 500 errors. The `.catch()` only triggers on network failures.

javascriptfetcherror-handling

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub