Shouldn't this block be handled via something like `throw new UnauthorizedException()`?