Skip to content

Commit 8cbf27a

Browse files
authored
Merge pull request #441 from cds-hooks/issue/254-cds-service-http-status-codes
Document possible HTTP status codes a CDS Service may return (fixes #254)
2 parents 80eb143 + cd8bcff commit 8cbf27a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/specification/1.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,15 @@ For successful responses, CDS Services SHALL respond with a 200 HTTP response wi
422422

423423
> Note that because the CDS client may be invoking multiple services from the same hook, there may be multiple responses related to the same information. This specification does not address these scenarios specifically; both CDS Services and CDS Clients should consider the implications of multiple CDS Services in their integrations.
424424
425+
### HTTP Status Codes
426+
427+
Code | Description
428+
---- | -----------
429+
`200 OK` | A successful response.
430+
`412 Precondition Failed` | The CDS Service is unable to retrieve the necessary FHIR data to execute its decision support, either through a prefetch request or directly calling the FHIR server.
431+
432+
CDS Services MAY return other HTTP statuses, specifically 4xx and 5xx HTTP error codes.
433+
425434
### Card Array
426435

427436
Field | Optionality | Type | Description

0 commit comments

Comments
 (0)