Skip to content

Glossary: React Basics

HTTP status codes

Also written: 201, 400, 500, status code

Three-digit numbers a server sends back with its response to say how the request went. Examples are 201 (order created), 400 (the request has problems) and 500 (server failure); `response.ok` in `fetch` is true only for codes 200 to 299.

Where the book teaches it

Related terms

fetchPOST