Instead of manipulating on headers directly (and die) you could try:
```
$this->app->wg->Out->setStatusCode ( 403 );
$this->specialPage->displayRestrictionError();
return false;
```