Morphemeris DocsBeta

Errors

Error codes, response format, and recovery steps.

Errors

All error responses follow a consistent format with machine-readable codes and human-readable messages.

Error response format

{
  "errors": [{
    "code": "invalid_parameter",
    "message": "Parameter 'system' has invalid value 'houses'. Valid systems: placidus, koch, ...",
    "param": "system",
    "suggestion": "Use 'placidus' (the default) or see docs for all 22 systems."
  }],
  "meta": {
    "request_id": "a1b2c3d4-..."
  }
}
  • code — Machine-readable error identifier (use this for programmatic handling)
  • message — Human-readable explanation of what went wrong
  • param — The parameter that caused the error (for validation errors only)
  • suggestion — A concrete next step to fix the problem

Error codes

400 Bad Request

CodeCauseRecovery
invalid_parameterMalformed or out-of-range valueFix the parameter value
missing_parameterRequired parameter not providedAdd the missing parameter
invalid_datetimeUnparseable datetime or Julian DayUse ISO 8601 UTC format or a valid Julian Day number
conflicting_parametersBoth datetime and jd providedProvide only one time input

401 Unauthorized

CodeCauseRecovery
invalid_api_keyMissing, malformed, or revoked keyCheck your key at the dashboard

402 Payment Required

CodeCauseRecovery
insufficient_creditsFree credits exhausted and no paid balancePurchase credits

403 Forbidden

CodeCauseRecovery
origin_not_allowedRequest origin not in key's allowed listUpdate origin restrictions in dashboard

404 Not Found

CodeCauseRecovery
body_not_foundUnrecognized celestial body nameSee available bodies
star_not_foundUnrecognized star nameUse common name (e.g., "Aldebaran") or Bayer designation (e.g., "alTau")
unknown_house_systemUnrecognized house systemSee house systems
unknown_ayanamshaUnrecognized ayanamsha systemSee ayanamshas

429 Too Many Requests

CodeCauseRecovery
rate_limit_exceededPer-minute rate limit exceededWait for Retry-After seconds

500 Internal Server Error

CodeCauseRecovery
computation_errorInternal calculation failureRetry; if persistent, contact support

503 Service Unavailable

CodeCauseRecovery
data_unavailableEphemeris data files could not be loadedRetry after a few seconds

On this page