Skip to content

Commit 023b4cd

Browse files
committed
NPA-4607 Add Patch /Consent 5XX Errors
1 parent 9adca6d commit 023b4cd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ paths:
250250
summary: Get a proxy access request
251251
description: |
252252
## Overview
253-
Retrieve a QuestionnaireResponse using its unique reference code. This endpoint returns the full
253+
Retrieve a QuestionnaireResponse using its unique reference code. This endpoint returns the full
254254
QuestionnaireResponse document that was previously submitted.
255255
256256
## Request Requirements
@@ -826,7 +826,23 @@ paths:
826826
$ref: "./examples/responses/PATCH_Consent/errors/invalid_status_code.yaml#/PatchConsentInvalidStatusCodeError"
827827
patchConsentInvalidStateTransitionError:
828828
$ref: "./examples/responses/PATCH_Consent/errors/invalid_state_transition.yaml#/PatchConsentInvalidStateTransitionError"
829+
"5XX":
830+
description: |
831+
Errors will be returned for the first error encountered in the request. An error occurred as follows:
829832
833+
| HTTP status | Error code | Description |
834+
| ----------- | -------------------------- | ------------------------------------------------------------ |
835+
| 500 | `SERVER_ERROR` | An unexpected internal server error has occurred. |
836+
| 503 | `DOWNSTREAM_SERVICE_ERROR` | A downsteam service has failed, request cannot be completed. |
837+
content:
838+
application/fhir+json:
839+
schema:
840+
$ref: "#/components/schemas/OperationOutcome"
841+
examples:
842+
InternalServerError:
843+
$ref: "./examples/responses/errors/internal-server-error.yaml#/InternalServerError"
844+
DownstreamServiceError:
845+
$ref: "./examples/responses/errors/downstream-service-error.yaml#/DownstreamServiceError"
830846
components:
831847
schemas:
832848
QuestionnaireResponse:

0 commit comments

Comments
 (0)