allows error to propagate for rest when getRestifyHandlerWithInitialization is used.