1. In your own words, describe what each group of status code represents:
2. What is a status code 202?
Asynchronous processing request
3. What is a status code 308?
Permanent Redirect
4. What code would you use if an update didn’t return data to a client?
204
5. What code would you use if a resource used to exist but no longer does?
410
6. What is the ‘Forbidden’ status code?
403
1. Why do we need to pull our MongoDB database string out of our server and put it into our .env?
2. What is middleware?
3. What does app.use(express.json())
do?
4. What does the /:id
mean in a route?
5. What is the difference between PUT
and PATCH
?
6. How do you make a default value in a schema?
7. What does a 500
error status code mean?
8. What is the difference between a status 200
and a status 201
?
-