docs: def to_model(self):
          """Return a bravado-core Error instance"""
          e = ApiPool().current_server_api.model.Error(
              status=self.status,
              error=self.code.upper(),
              error_description=str(self),
          )
          if self.error_id:
              e.error_id = self.error_id
          if self.user_message:
              e.user_message = self.user_message
          if self.error_caught:
              e.error_caught = pformat(self.error_caught)
          return e