Code-Fellows reading notes.
Reading Status Codes Based On REST Methods In your own words, describe what each group of status code represents:
100’s = informational status codes, usually tell client that the header code was received and it will continue using a diuff protocol or let u know it failed.
200’s = success codes! accepted
300’s = redirection codes, it meets all validation requirements at the time of sending though
400’s = client error codes.
500’s = server error codes
What is a status code 202? accepted, often used for async processing. request was valid, processing will finish sometime in the future. ‘await’
What is a status code 308? Permanent redirect
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?
403 forbidden no permissions to access the resources.
Additional Resources
Videos
Build A REST API With Node.js, Express, & MongoDB - Quick - First 20 minutes
Why do we need to pull our MongoDB database string out of our server and put it into our .env?
What is middleware?
What does app.use(express.json()) do?
What does the /:id mean in a route?
What is the difference beween PUT and PATCH?
How do you make a defalut value in a schema?
What does a 500 error status code mean?
What is the difference between a status 200 and a status 201?