code: def raise_for_status(self):
          
  
          if self.error:
              raise self.error
  
          if (self.status_code >= 300) and (self.status_code < 400):
              raise HTTPError('%s Redirection' % self.status_code)
  
          elif (self.status_code >= 400) and (self.status_code < 500):
              raise HTTPError('%s Client Error' % self.status_code)
  
          elif (self.status_code >= 500) and (self.status_code < 600):
              raise HTTPError('%s Server Error' % self.status_code)
docs: Raises stored :class:`HTTPError` or :class:`URLError`, if one occurred.