Skip to content

Glossary: React Beyond the Basics

response.ok

A property of a fetch response that is `true` when the status code signals success (200–299). Code checks it because `fetch` does not fail on a 404 or 500 answer.

Where the book teaches it

Related terms

fetchreadJsonHTTP status codes