docs: def register(self, bug: Bug) -> None:
          """
          Dynamically registers a given bug with the server. Note that the
          registration will not persist beyond the lifetime of the server.
          (I.e., when the server is closed, the bug will be deregistered.)
  
          Raises:
              BugAlreadyExists: if there is already a bug registered on the
                  server under the same name as this bug.
          """
          path = "bugs/{}".format(bug.name)
          payload = bug.to_dict()
          r = self.__api.put(path, json=payload)
          if r.status_code != 204:
              self.__api.handle_erroneous_response(r)