def METHOD_NAME(self, status, headers, body):
    """Send response to HTTP request."""
    req = self.req
    # Set response status
    req.status = status or b'500 Server Error'
    # Set response headers
    for header, value in headers:
        req.outheaders.append((header, value))
    if (req.ready and not req.sent_headers):
        req.sent_headers = True
        req.send_headers()
    # Set response body
    for seg in body:
        req.write(seg)