code: def send_file(self, filename, status=200):
          
          if isinstance(filename, Path) and sys.version_info >= (3, 5):
              self.message = filename.read_bytes()
          else:
              with io.FileIO(str(filename)) as f:
                  self.message = f.read()
          self.status_code = status
          self.send_headers()
          self.write()
          self.write_eof()
docs: Reads in the file 'filename' and sends bytes to client
  
          Parameters
          ----------
          filename : str
              Filename of the file to read
          status : int, optional
              The HTTP status code, defaults to 200 (OK)