- 100’s = informationl status codes
- 200’s = success status codes
- 300’s = redirection status codes
- 400’s = client error status codes
- 500’s = server error status codes
error code 410
403 status code
- Because it has sensitive information.
- code that runs when server gets request but before it gets passed to routes
app.use(express.json())
do?- lets our server accept json as a body
/:id
mean in a route?- gets a single route used with params
PUT
and PATCH
?- put updates all the information of the route all at once instead of just the information that gets passed
- by passing default as one of the keys
500
error status code mean?- something is wrong on the server-side
200
and a status 201
?- 200: generic success message
- 201: something was created successfully