Question - What are the core components of an HTTP Response?
Answer -
Following are the four core components of an HTTP Response:
- Status/Response Code: The server generates the status or response codes when the client makes a request. For example, 404 means Page Not Found, and 200 means Response is OK.
- HTTP Version: It describes the HTTP version. For example: HTTP v1.1, HTTP v1.3 etc.
- Response Header: The Response Header includes the information for the HTTP response message. For example, Content-type, Content-length, date, status, and server type.
- Response Body: The Response Body contains the client's data requested from the server.