DEV Community


Discussion on: Do you know why we check for response.ok while using fetch

bias profile image
Tobias Nickel

it is useful, when you want to show the user some more specific error what went wrong. giving him a tip to resolve the issue himself, maybe create or update someother entity first.

I would think this is terribly useful.

Thread Thread
jessegilbride profile image
Jesse Gilbride • Edited

Right, useful to the programmer.