What HTTP Status Codes Query.send(callback) Is Handling?

6 views
Skip to first unread message

Mark Hsueh

unread,
Nov 2, 2009, 2:52:36 PM11/2/09
to Google Visualization API
Hi,

I am creating Table and Column Chart samples with our visualization
data source API query language implementation. In this API, other HTTP
status codes (e.g. 401, 403, etc) are returned for various errors. I
realized Query.send only invokes callback function when status code is
200. Could you let me know if Query.send is handling other status
codes? If so, what is that? If not, how can I find out the other
status codes from Visualization API?

Thanks,
Mark

Bug Chart

unread,
Nov 3, 2009, 1:55:28 AM11/3/09
to google-visua...@googlegroups.com
Hi,

it sounds like your data source is not really a data source.
as written here: http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#jsondatatable,
your data source should return a nice json response even in case of errors,
so that your client (Query.send(callback)) will handle.

HTH

BugChart
Reply all
Reply to author
Forward
0 new messages