You can see that in the official xenforo code ( $this->responseRedirect ...) like here (which is a custom code):
PHP:
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
XenForo_Link::buildPublicLink('members/mobileedit'),
'You just changed your mobile number' );