def METHOD_NAME(self) -> ReturnRenderWith:
    # This view must NOT have a `@requires_login` decorator as that will insert
    # it as the next page after login
    if current_auth.user:
        return {
            'status': 'ok',
            'unread': self.unread_count(),
        }
    return {'status': 'error', 'error': 'requires_login'}, 400