API Status Return Codes

By john

The DayPI call responses include codes indicating success or failure as well as a message with some explanation or helpful tip in cases of failure. Here is the current list of response/error codes and messages:

2001 Success
2002 Success (Serving cached results.)
-2001 Invalid API Credentials
-2002 Invalid input id
-2003 Date start_time is in an invalid format. Please use "YYYY-MM-DD hh:mm:ss" or an epoch value
-2004 Invalid date range [%(start)s, %(end)s]. Start date cannot be earlier than the end date
-2005 No search query term was provided
-2006 Source filter ID is invalid
-2007 Invalid topic id provided in the "speaker_topic_id" parameter.
-2008 Topic Not found in system
-2009 Invalid value "%(error_value)s" for field "%(error_field)s
-2011 Found multiple values for parameter "%(error_field)s". Only one instance of this parameter is permitted