SSoma HealthFHIR API
Getting started

Response codes

HTTP status codes and the OperationOutcome and OAuth errors that explain them.

The API uses standard HTTP status codes. Read and search errors come with a FHIR OperationOutcome that says what went wrong; token errors use the OAuth 2.0 error format.

StatusWhen
200 OKThe request worked.
400 Bad RequestA search parameter is malformed (for example a date that isn't a FHIR date), or a required parameter is missing. Token: invalid_request, unsupported_grant_type or invalid_scope.
401 UnauthorizedNo access token, or it's invalid or expired. Token: invalid_client (unknown client ID, bad signature, expired or reused assertion, or access paused by the practice).
403 ForbiddenYour app isn't allowed to read or search this resource type.
404 Not FoundThe resource doesn't exist or isn't visible to your app, the resource type isn't served, or there's no FHIR API at this address (the practice doesn't exist or hasn't turned the API on).
429 Too Many RequestsOver the rate limit.
5xxSomething went wrong on our side. Retry with backoff.
OperationOutcome (403)
{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "forbidden",
      "diagnostics": "This app isn't allowed to read Coverage."
    }
  ]
}
OAuth error (401)
{
  "error": "invalid_client",
  "error_description": "This client assertion (jti) was already used."
}

A 401 from a read or search also carries a WWW-Authenticate: Bearer header.