reading-notes

Class 12

Back to home page

Status codes in REST

Q. In your own words, describe what each group of status code represents:

Q. What is a status code 202?

Q. What is a status code 308?

Q. What code would you use if an update didn’t return data to a client?

Q. What code would you use if a resource used to exist but no longer does?

Q. What is the ‘Forbidden’ status code?

Building a REST API quick

Q. Why do we need to pull our MongoDB database string out of our server and put it into our .env?

Q. What is middleware?

Q. What does app.use(express.json()) do?

Q. What does the /:id mean in a route?

Q. What is the difference between PUT and PATCH?

Q. How do you make a default value in a schema?

Q. What does a 500 error status code mean?

Q. What is the difference between a status 200 and a status 201?

Things I want to know more about

When an API or service uses status codes over 599 (or custom codes) how do we identify what these mean when using their service? What is the best practice industry wise when it comes to custom codes and how do you make custom codes in your code to begin with?