code: def register_errors_handler(self, callback, *custom_filters, exception=None, run_task=None, **kwargs):
          
          filters_set = self.filters_factory.resolve(self.errors_handlers,
                                                     *custom_filters,
                                                     exception=exception,
                                                     **kwargs)
          self.errors_handlers.register(self._wrap_async_task(callback, run_task), filters_set)
docs: Register handler for errors
  
          :param callback:
          :param exception: you can make handler for specific errors type
          :param run_task: run callback in task (no wait results)