|
Creating clean RSS errors
Hey all
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.
m_n
__________________
"Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
-Tommy Cooper
Last edited by martin_narg; 10-21-2010 at 04:36 PM..
|