StatusCode.md - brainchildservices/curriculum GitHub Wiki
Slide 1
STATUS CODE 200:
-
The HTTP 200 OK success status response code indicates that the request has succeeded.
-
A 200 response is cacheable by default.
-
The meaning of a success depends on the HTTP request method:
-
GET: The resource has been fetched and is transmitted in the message body.
- Example:when you go for a random search in google and click on a link,
- In the dev toolbar you can see the status code has become 200 when process completed.
-
POST: The resource describing the result of the action is transmitted in the message body
-
Slide 2
STATUS CODE 404:
- The 404 Not Found
- The server has not found anything matching the Request-URI.
- No indication is given of whether the condition is temporary or permanent.
- This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
- Example: