Notes
In your own words, describe what each group of status code represents:
- 100’s = a temporary error while transition happens
- 200’s = partial completion of request
- 300’s = completed request
- 400’s = poor requests
- 500’s = poor directions on the request
What is a status code 202?
What is a status code 308?
What code would you use if an update didn’t return data to a client?
What code would you use if a resource used to exist but no longer does?
What is the ‘Forbidden’ status code?
Why do we need to pull our MongoDB database string out of our server and put it into our .env?
- because is it directly linked to the DB account we established
What is middleware?
- actions taken between servers and applications
What does app.use(express.json()) do?
- a middleware function to call express
What does the /:id mean in a route?
- it is the ID to a property
What is the difference beween PUT and PATCH?
- patch is a set of instructions to modify a resource and put is the method used to gather the resource
How do you make a defalut value in a schema?
- by using the default keyword
What does a 500 error status code mean?
What is the difference between a status 200 and a status 201?
- 200 is when the object is rendered and returned but 201 is when only the reference is returned
BACK TO HOME