Grahvani API v1
Error reference

not_available_in_school

Real operation, absent in that ayanāṁśa

HTTP status
501
Error type
not_implemented

What it means#

The endpoint exists and the school exists, but we do not compute that operation in that school.

What to do#

error.message names the schools that DO have it. Either switch school, or drop to the default.

Why a 501 and not a 404: a 404 would mean "no such thing", which is false and would send you looking for a typo. The operation is real. What is missing is our implementation of it in that particular school, and that distinction is the difference between debugging your code and reading a capability table.

We chose this over silently falling back to Lahiri. A silent fallback would return numbers computed under a school you did not ask for, differing by more than a degree — wrong answers that look right are the worst possible failure here.

The error shape#

501
{
  "error": {
    "type": "not_implemented",
    "code": "not_available_in_school",
    "message": "\u2026",
    "doc_url": "https://docs.grahvani.in/errors/not_available_in_school",
    "request_id": "req_01JQ8ZK3M4N5P6Q7R8S9T"
  }
}

Full list: all error codes · error handling guide.

Grahvani API — a product of AstroCorp Techlab Pvt Ltd · GSTIN 36AAMCC3512G1ZU
Base URL https://api.grahvani.in
On this page