code: def _error_handling(self, res):
          
  
          # making the error handling generic so if an status_code starting with 2 doesn't exist, we raise the error
          if res.status_code // 100 != 2:
              error = self._get_response_json(res)
              raise exceptions.KeenApiError(error)
docs: Helper function to do the error handling
  
          :params res: the response from a request