What''s the correct format for returning informative errors from a REST server. Error code 500 isn''t enough. I want to see a description of the error, but how can I format the XML correctly to put some useful information in. This is a Rails client working with a non-Rails server. Thanks John Small -- Posted via http://www.ruby-forum.com/.
rogerdpack
2009-Aug-03 12:47 UTC
Re: Correct format for errors returned from a REST server?
On Aug 3, 5:31 am, John Small <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> What''s the correct format for returning informative errors from a REST > server. Error code 500 isn''t enough. I want to see a description of the > error, but how can I format the XML correctly to put some useful > information in.a few links here might help. http://www.google.com/search?rlz=1C1CHMA_enUS312US312&sourceid=chrome&ie=UTF-8&q=rails+how+to+render+500+text
John Small
2009-Aug-03 14:38 UTC
Re: Correct format for errors returned from a REST server?
> a few links here might help. > http://www.google.com/search?rlz=1C1CHMA_enUS312US312&sourceid=chrome&ie=UTF-8&q=rails+how+to+render+500+textThose links seem to be mostly about formating code 500 errors for public viewing on a webpage. I think the easiest way to do this is to create a Rails REST server, force it to have a code 500 error, and then see what it sends to the client. That way I''ll find something about how the Rails client expects to see code 500 errors presented in a REST conversation. I''ll do that later on today. John Small -- Posted via http://www.ruby-forum.com/.