reading-notes

CRUD

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

2. What is a status code 202?

202 Accepted,Asynchronous processing is frequently utilized. This code informs the client that the request was legitimate, but that it will be processed at a later time. The response body should contain either a URL to the completed resource with information about when it will be accessible, or a URL to a monitoring endpoint that notifies the client when the resource is ready.

3. What is a status code 308?

308 Permanent Redirect,This instructs the client to access the resource through a different URL rather than the current one. When we have several endpoints for a single resource but don’t want to implement reading from all of them, this is useful.

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

204 No Content.

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

410 Gone.

6. What is the ‘Forbidden’ status code?

403 Forbidden,The client has authorized or doesn’t need to authorize itself, but still has no permissions to access the resource.

Things I want to know more about