Kirby 4.2.0
$redirect->getCode()
Kirby\Panel\Redirect inherited from Exception
Kirby\Panel\Redirect
Exception