fn write_response( stream: &mut TcpStream, status: &str, content_type: &str, body: &str, ) -> Result<()>