code: def _handle_unknown_method(self, method, remainder, request=None):
          '''
          Routes undefined actions (like RESET) to the appropriate controller.
          '''
          if request is None:
              self._raise_method_deprecation_warning(self._handle_unknown_method)
  
          # try finding a post_{custom} or {custom} method first
          controller = self._find_controller('post_%s' % method, method)
          if controller:
              return controller, remainder
  
          # if no controller exists, try routing to a sub-controller; note that
          # since this isn't a safe GET verb, any local exposes are 405'd
          if remainder:
              if self._find_controller(remainder[0]):
                  abort(405)
              sub_controller = self._lookup_child(remainder[0])
              if sub_controller:
                  return lookup_controller(sub_controller, remainder[1:],
                                           request)
  
          abort(405f _handle_unknown_method(self, method, remainder, request=None):
          '''
          Routes undefined actions (like RESET) to the appropriate controller.
          '''
          if request is None:
              self._raise_method_deprecation_warning(self._handle_unknown_method)
  
          # try finding a post_{custom} or {custom} method first
          controller = self._find_controller('post_%s' % method, method)
          if controller:
              return controller, remainder
  
          # if no controller exists, try routing to a sub-controller; note that
          # since this isn't a safe GET verb, any local exposes are 405'd
          if remainder:
              if self._find_controller(remainder[0]):
                  abort(405)
              sub_controller = self._lookup_child(remainder[0])
              if sub_controller:
                  return lookup_controller(sub_controller, remainder[1:],
                                           request)
  
          abort(405)
docs: Routes undefined actions (like RESET) to the appropriate controller.