What a client sees
Account status exceptions
AccountPendingError and AccountSuspendedError inherit from AuthorizationError but
trigger redirects to dedicated status pages instead of a generic 403.
They are raised automatically by
@auth_required based on the user’s active and
approved_at fields, so you do not raise them yourself. The pages are scaffolded into
your app — edit them in templates/pages/account/ to match your branding.