code: def default_errorhandler(self, f):
          
          for http_code in default_exceptions:
              self.error_handler_spec[None][http_code] = f
          return f
docs: Decorator that registers handler of default (Werkzeug) HTTP errors.
  
          Note that it might override already defined error handlers.