Shared admin error pages logic #342