For the sake of clarity, I always provide those as first-class members of the page, just so newcomers can see the various ways the page can enter invalid states. I feel this follows the principle of self-documenting code, and (to me, anyway) doesn't provide distraction or confusion.