code: def send_content(
          self,
          http_code,
          content,
          mime_type="text/html",
          http_message=None,
          content_length=-1,
      ):
          # type: (int, str, str, str, int) -> None
          
          self.set_response(http_code, http_message)
          if mime_type and not self.is_header_set("content-type"):
              self.set_header("content-type", mime_type)
  
          # Convert the content
          raw_content = to_bytes(content)
  
          if content_length is not None and not self.is_header_set(
              "content-length"
          ):
              if content_length < 0:
                  # Compute the length
                  content_length = len(raw_content)
  
              # Send the length
              self.set_header("content-length", content_length)
  
          self.end_headers()
  
          # Send the content
          self.write(raw_content)
docs: Utility method to send the given content as an answer.
          You can still use get_wfile or write afterwards, if you forced the
          content length.
  
          If content_length is negative (default), it will be computed as the
          length of the content;
          if it is positive, the given value will be used;
          if it is None, the content-length header won't be sent.
  
          :param http_code: HTTP result code
          :param content: Data to be sent (must be a string)
          :param mime_type: Content MIME type (content-type)
          :param http_message: HTTP code description
          :param content_length: Forced content length