On Sep 10, 8:03 pm, mysoniclife <[EMAIL PROTECTED]> wrote: > > But how does this work with GData and APP? How are exceptions handled > and is there a standard? Do I get back an ATOM feed with a single > entry that contains the error code/message? > > How does this work with the Google Calendar API if I try to post junk?
Hi Dan, GData uses standard HTTP error (4xx) response codes to indicate requests that could not be processed successfully and then includes information about the error inside the HTTP response body. In your specific example (a POST of a syntactically incorrect Calendar event), this would be a 400 (Bad Request) response which the HTTP 1.1 spec (rfc2616) defines as "The request could not be understood by the server due to malformed syntax", which is pretty appropriate in this circumstance. GData doesn't currently have a structured error response body syntax as part of the protocol, but it has been something that we've thought about as a future extension. I'm pretty sure most APP services will do something similar to the above; the design center for APP (and lots of other REST models) is to use existing HTTP conventions/mechanisms wherever possible. Cheers! -- Kyle --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
