[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: issue: standard error messages



How about
<response status="404">
 <error>Unable to update resource.</error>
 <reason>Resource xyz not found. No date specified</reason>
 <resolution>Supply a valid ISO8601 date in the 'date' query
term.</resolution>
 <details>...stack trace goes here...</details>
</response>


----- Original Message ----- 
From: "Robert Sayre" <mint@xxxxxxxxxxxxxxx>
To: "Atom Protocol" <atom-protocol@xxxxxxx>
Sent: Wednesday, March 16, 2005 7:34 PM
Subject: issue: standard error messages


>
> I've noticed that TypePad sends human readable error messages in the
> message body like this:
>
> <error>Hey, you screwed up</error>
>
> Should we standardize that? Maybe, but someone might want to extend the
> protocol with additional information.
>
> How about
>
> <error>
> <description>Hey, you screwed up</description>
> </error>
>
> or maybe
>
> <error>
> <item>
> <title>Application Error</title>
>     <description>blah blah</description>
>          </item>
> </error>
>
> Robert Sayre
>
>