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.
| Status | When |
|---|---|
200 OK | The request worked. |
400 Bad Request | A 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 Unauthorized | No 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 Forbidden | Your app isn't allowed to read or search this resource type. |
404 Not Found | The 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 Requests | Over the rate limit. |
5xx | Something went wrong on our side. Retry with backoff. |
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "forbidden",
"diagnostics": "This app isn't allowed to read Coverage."
}
]
}{
"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.