Reusing CAS error pages could help simplify things...