- 100’s = Give information regarding a request.
- 200’s = Wahoo! We have success!
- 300’s = RuRoh. Let's look somewhere else.
- 400’s = Oh No! Something went wrong. We are missing something.
- 500’s = Error! Server overwhelmed or blocked
Accepted
Permanent Redirect
204
410
403
So we can deploy from something other than localhost by pulling from our .env
- a function that can only be applied using routes. We can access and modify request and response data using middleware.
- a function that will have all the access for requesting an object, responding to an object, and moving to the next middleware function in the application request-response cycle
"The app.use() function adds a new middleware to the app. Essentially, whenever a request hits your backend, Express will execute the functions you passed to app.use() in order."- (https://masteringjs.io/tutorials/express/express-json)
it is a parameter we can access request.params.id It gives us access to whatever they pass in after the first slash
"PUT is a technique of altering resources when the client transmits data that revamps the whole resource. PATCH is a technique for transforming the resources when the client transmits partial data that will be updated without changing the whole data."- (https://byjus.com/gate/difference-between-put-and-patch-request/#:~:text=PUT%20is%20a%20technique%20of%20altering%20resources%20when%20the%20client,without%20changing%20the%20whole%20data.)
Your schemas can define default values for certain paths. If you create a new document without that path set, the default will kick in.
the server encountered an unexpected condition that prevented it from fulfilling the request
200: “Everything is OK.” This is the code that is delivered when a web page or resource acts exactly the way it's expected to. 201: “Created.” The server has fulfilled the browser's request, and as a result, has created a new resource
What rest is, and what are restful endpoints.