Understanding status codes are important to debug and isolate the problem.
MongoDB is a tool developers can use to integrate non relational databases into their applications for storage.
100s: Heads up
200s: It worked!
300: Wrong way! The thing you want isn’t here
400: User issue!
500: Server issue!
“Code tells the client that the request valid, but its processing will finish sometime in the future” source
Client needs to use another URL to find what they’re looking for because it’s not at this address anymore.
204 No content
410 Gone
403 Forbidden
It has your password that allows you to access your collection
Code that is run when the server gets a request but before it gets passed to the route
Allows us to use any middleware that we might need
It’s the endpoint of the route.
Put= Update or create something at a URL. Patch = Partially update the resource at a given url.
const Schema = mongoose.Schema;?
The server encountered a problem that is preventing it from fulfilling the request.
200 means that the request was successful while 201 also indicates that the request was succesful but it also made a new resource