Errors
Errors use normal HTTP status codes and a JSON body.
codeis stable. Check this in your code.messageis for people. Its wording may change.
400 application/json (real response for tz: Mars/Olympus)
{
"error": {
"code": "invalid_tz",
"message": "invalid \"tz\": use an IANA zone like Asia/Kolkata or an offset like +05:30"
}
}Codes
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_json | Body is not valid JSON or has the wrong field types. |
| 400 | invalid_request | The request could not be built, for example a compare case with a bad endpoint name. |
| 400 | invalid_datetime | datetime is not YYYY-MM-DDTHH:MM[:SS]. |
| 400 | invalid_dateinvalid_timeinvalid_from | date, time or from is missing or malformed. |
| 400 | invalid_as_of | as_of is not a valid date or datetime. The date of tarabala and the datetime of transits use this code too. |
| 400 | invalid_latinvalid_lon | Latitude or longitude missing or out of range. |
| 400 | ambiguous_place | Several places have this name. error.choices lists them: add the state or district, or send the place_id of one. |
| 400 | place_not_foundinvalid_place | No place with this name or id, or place is not text. error.choices lists similar names, if any. |
| 400 | invalid_qinvalid_countryinvalid_limitinvalid_query | Bad place search input: q is empty, country is not a two-letter code, or limit is not 1 to 50. |
| 400 | invalid_tz | Missing or unknown IANA zone, or bad offset. |
| 400 | out_of_range | Date is outside 1850 to 2149. |
| 400 | no_sunrise | Sunrise or sunset does not occur at this place on this date (polar day or night). Upagrahas need one. |
| 400 | invalid_purpose | Unknown muhurta purpose; see /v1/muhurta/purposes. |
| 400 | invalid_sign | Sign must be an English sign name such as Aries. |
| 400 | invalid_yearinvalid_monthinvalid_toinvalid_daysinvalid_yearsrange_too_long | Bad year, month or date range, or a range longer than the endpoint allows. The message gives the limits. |
| 400 | invalid_lordsinvalid_depth | Dasha input: unknown lord in lords, or depth out of range. |
| 400 | invalid_personinvalid_othersinvalid_nakshatrainvalid_roleinvalid_system | Matching input: a person is not a birth or a nakshatra, others is not 1 to 100 people, or an unknown role or system. |
| 400 | invalid_planetinvalid_planetsinvalid_aspectsinvalid_orbsinvalid_house_system | Unknown planet, aspect or house system, or an orb outside 0 to 15. |
| 400 | invalid_kindinvalid_birth_dateinvalid_date_of_birthinvalid_name | Festival kind is not festival, vrat or sankranti, a birth date is missing or malformed, or the numerology name is not in Latin letters. |
| 400 | invalid_spreadinvalid_seedinvalid_questioninvalid_arcanainvalid_suit | Tarot input: unknown spread, arcana or suit, a bad seed, or a question over 500 characters. |
| 400 | invalid_rollout | Rollout settings refused, for example an address that is not the vendor's own, or missing credentials. |
| 400 | invalid_vendorinvalid_cases | Bad migration compare input. |
| 401 | invalid_key | Missing or unknown API key. |
| 400 | invalid_domain | A website key needs 1 to 20 domains such as example.com or *.example.com. |
| 401 | invalid_site_key | Place box: missing, unknown or removed website key, or a secret key in its place. |
| 403 | domain_not_allowed | Place box: this page's domain is not listed for the website key. |
| 429 | box_limit_reached | Place box: today's box searches are used up. Retry-After says when they reset. |
| 401 | Dashboard call without a valid session. | |
| 404 | not_found | Unknown chart, place id or other resource, for example a key that is not yours. |
| 413 | body_too_large | Request body over the limit: 256 KB, 1 MB for MCP, 8 MB for compare. |
| 429 | rate_limited | Too many requests per second for your plan. Wait for the seconds in Retry-After. |
| 429 | quota_exceeded | Daily (Free plan) or monthly calls used up. Retry-After says when they reset; upgrading applies at once. |
| 500 | internal | Unexpected server error. Retrying is safe. |
| 503 | Short outage on our side. Retry after the seconds in Retry-After. |
Vendor-compatible routes
- Routes under
/compat/<vendor>return errors in that vendor's own format. - Your existing error handling keeps working.
- An endpoint we do not have goes to your old vendor, once its login is saved on the Migration page.
- Without a saved login it answers “not available in compat mode”, in the same format.