Four Parts, in the Same Order Both Ways
An HTTP request is made of four parts, in this order: the request line, the headers, a blank line, and the body. The request line lists the method, the path, and the version. Each header takes one line and states one piece of information.
A response is made of the same four parts in the same order. Only the first line differs: instead of a request line, a response starts with a status line that reports the outcome.
A blank line separates the headers from the body. Everything before the blank line is headers, and everything after it is the body.
Explain what lines an HTTP request and an HTTP response are each made of, and what separates their headers from their body.
In HTTP/1.1 200 OK, Content-Type: application/json, then a blank line, then {"id":42} — which line is the body?