An HTTP response message is represented as a Rust HttpResponse containing a protocol version, status code, status description, optional headers, and an optional body. The structure can be converted into the well-formed text an HTTP client receives. section 2.3.2
Serialized 404 response
A response with status 404, Content-Type text/html, and body “Item was shipped on 21st Dec 2020” becomes an HTTP/1.1 status line followed by headers, Content-Length: 33, a blank line, and the body.
