code: async def handle_exception(self, exc: Exception, action: str, request_id):
          
          if isinstance(exc, APIException):
              await self.reply(
                  action=action,
                  errors=self._format_errors(exc.detail),
                  status=exc.status_code,
                  request_id=request_id
              )
          elif exc == Http404 or isinstance(exc, Http404):
              await self.reply(
                  action=action,
                  errors=self._format_errors('Not found'),
                  status=404,
                  request_id=request_id
              )
          else:
              raise exc
docs: Handle any exception that occurs, by sending an appropriate message