HttpResponse.md - brainchildservices/curriculum GitHub Wiki
Slide 1
HTTP Responses
The start line of an HTTP response, called the status line, contains the following information:
- The protocol version, usually HTTP/1.1.
- A status code, indicating success or failure of the request. Common status codes are 200, 404, or 302
- A status text. A brief, purely informational, textual description of the status code to help a human understand the HTTP message.
A typical status line looks like: HTTP/1.1 404 Not Found.
Slide 2
HTTP is a client-server protocol:
requests are sent by one entity, the user-agent (or a proxy on behalf of it). Most of the time the user-agent is a Web browser, but it can be anything, for example a robot that crawls the Web to populate and maintain a search engine index. Each individual request is sent to a server, which handles it and provides an answer, called the response. Between the client and the server there are numerous entities, collectively called proxies, which perform different operations and act as gateways or caches.
Ref Link: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages