Currently writing a PHP app, part of which generates RSS feeds.
I'm wondering whats the best way to output error messages to a dynamically created RSS page.
For example if a user isn't logged in to my app and tries to access a feed url, I'd like to output a handle-able 'You don't have permission to access this' message.
I'm wondering if anyone knows how RSS readers generally handle errors (HTTP error codes would definitely be one) but is there a generic, widely used way of putting error messages into the XML document itself to be cleanly handled? Is the best way just to create an item node with the error details within it?
Cheers for your responses.