Add the response header to the headers buffer and log the response code. Also send two standard headers with the server software version and the current date.
http.server/BaseHTTPRequestHandler.send_response
BaseHTTPRequestHandler.send_response