code: def handle_error(self, message: str, e: mastodon.MastodonError) -> OutputRecord:
          
          self.lerror(f"Got an error! {e}")
  
          # Handle errors if we know how.
          try:
              code = e[0]["code"]
              if code in self.handled_errors:
                  self.handled_errors[code]
              else:
                  pass
  
          except Exception:
              pass
  
          return TootRecord(error=e)
docs: Handle error while trying to do something.