code: def _handle_error(self, response):
          
          auth_msg = "The query could not be completed. Invalid auth token."
  
          status_code = response.status_code
          if 400 <= status_code < 500:
              if status_code == 400:
                  raise auth_error(auth_msg)
              else:
                  raise auth_error("The query could not be completed. "
                                   "There was a client-side error with your "
                                   "request.")
          elif 500 <= status_code < 600:
              raise auth_error("The query could not be completed. "
                               "There was a server-side error with "
                               "your request.")
          else:
              raise auth_error("The query could not be completed.")
docs: Handles all responses which return an error status code