code: def check_server(self):
          
          msg = 'API server not found. Please check your API url configuration.'
  
          try:
              response = self.session.head(self.domain)
          except Exception as e:
              raise_from(errors.ServerError(msg), e)
  
          try:
              self._check_response(response)
          except errors.NotFound as e:
              raise raise_from(errors.ServerError(msg), e)
docs: Checks if the server is reachable and throws
          and exception if it isn't