healthcare.dev docs

Errors

RFC 9457 problem details with stable type codes.

Errors are application/problem+json (RFC 9457):

{
  "type": "https://healthcare.dev/problems/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "limit must be at most 100",
  "errors": [{ "path": "limit", "message": "Too big: expected number to be <=100" }]
}

Branch on type. Codes are stable and only ever added, never renamed.

type (under https://healthcare.dev/problems/)StatusWhat to do
invalid-request400Fix the parameter named in errors[].path
unauthorized401Send a valid key: Authorization: Bearer hdev_live_...
forbidden403Your plan or key can't use this dataset
not-found404The id doesn't exist in any release (retired ones do)
rate-limited429Wait Retry-After seconds, then retry
quota-exceeded429Monthly calls used up; upgrade or wait for the next month
internal500Retry with backoff; tell us if it persists
unavailable503Service degraded; retry with backoff
dataset-unavailable503The dataset has no published version yet

The SDK maps these to typed errors (NotFoundError, RateLimitError, QuotaExceededError, ...) and retries rate-limited, 5xx and network errors for you.