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 (cached response) |
| -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 |
| -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 |
| -2012 |
Multiple name-value pairs found for a parameter that is allowed only once. |
| -2013 |
Required ID or name not found in the request |
| -2014 |
Invalid Topic Type |
| -2016 |
Invalid Source ID |
| -2017 |
Conflicting usage of parameters. |
| -2018 |
Invalid Source Type |
| -2019 |
Invalid Source Rank |
| -2020 |
Invalid Query |
| -2021 |
Query exceeded the maximum term limit of 32 terms and/or phrases |
| -2022 |
Content exceeded the maximum character limit of 20,000 characters |
| -2023 |
Invalid text in the content parameter |
| -2025 |
Request time out |
| -2026 |
Request time out |
| -2027 |
Invalid value for min_topic_image_confidence. Valid values are high, low or medium. |
| -2028 |
Request time out |
| -2029 |
Start time and end time must be within the last 90 days |
| -2030 |
Value of top_count cannot exceed 50. |
| -2031 |
Required ID or name not found in the request |