You can just make this:

```
if (err) {
  oae.api.util.redirect().notfound();
}
```

The error page for a tenant that's not running will automatically be loaded by the OAE UI APIs.