What is a status code 202?

  • The 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent’s connection to the server persist until the process is completed.

What is a status code 308?

  • he HyperText Transfer Protocol (HTTP) 308 Permanent Redirect redirect status response code indicates that the resource requested has been definitively moved to the URL given by the Location headers

    What is the ‘Forbidden’ status code?

  • 403 ‘Forbidden.’ This happens after authorization has been accepted, or if auth is not necessary, but the client does not have correct permissions to use the resource.

    What is middleware?

  • Middleware is software that provides common services and capabilities to applications outside of what’s offered by the operating system. Data management, application services, messaging, authentication, and API management are all commonly handled by middleware.

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

  • Let the server accept JSON as a body inside a POST or GET element.

What is the difference beween PUT and PATCH?

  • Patch is only updating what the user passes- put would update all the information at once. Patch only updates what is given

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

  • 201 : Successfully created an object 200 : everything was successful The 201 is more specific, so if it can be used, for example in a post route, it should be used. More information is always better!