diff --git a/specification/components/r4/schemas/endpoints/a041-search-service-request.yaml b/specification/components/r4/schemas/endpoints/a041-search-service-request.yaml index 4b7063461..259f17579 100644 --- a/specification/components/r4/schemas/endpoints/a041-search-service-request.yaml +++ b/specification/components/r4/schemas/endpoints/a041-search-service-request.yaml @@ -72,7 +72,7 @@ responses: '401': $ref: '../responses/Unauthorized.yaml' '403': - $ref: '../responses/searchServiceRequest/403Response.yaml' + $ref: '../responses/Forbidden.yaml' '406': $ref: '../responses/NotAcceptable.yaml' '429': diff --git a/specification/components/r4/schemas/responses/ForbiddenOrNoLR.yaml b/specification/components/r4/schemas/responses/ForbiddenOrNoLR.yaml index ebd7b13f9..12ea0a973 100644 --- a/specification/components/r4/schemas/responses/ForbiddenOrNoLR.yaml +++ b/specification/components/r4/schemas/responses/ForbiddenOrNoLR.yaml @@ -6,6 +6,8 @@ description: | | ------------------------- | ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------- | | REC_FORBIDDEN | forbidden | [BaRS Error Code](https://fhir.nhs.uk/CodeSystem/http-error-codes) | A call attempts to access or operate upon a resource without proper authorisation. | | NO_RELATIONSHIP | forbidden | [eRS Error Code](https://fhir.nhs.uk/CodeSystem/ers-error-codes) | The caller has no legitimate relationship with the resource. | + | ACCESS_DENIED | forbidden | [APIM Error Code](https://fhir.nhs.uk/CodeSystem/NHSD-API-ErrorOrWarningCode) | The request could not be authenticated due to insufficient credentials being provided. | + headers: X-Correlation-ID: $ref: '../headers/response/CorrelationID.yaml' @@ -18,4 +20,4 @@ content: schema: $ref: '../NHSDigital-OperationOutcome.yaml' example: - $ref: '../../examples/NHSDigital-OperationOutcome-403.json' \ No newline at end of file + $ref: '../../examples/NHSDigital-OperationOutcome-403.json' diff --git a/specification/components/r4/schemas/responses/searchServiceRequest/403Response.yaml b/specification/components/r4/schemas/responses/searchServiceRequest/403Response.yaml deleted file mode 100644 index 17bda1097..000000000 --- a/specification/components/r4/schemas/responses/searchServiceRequest/403Response.yaml +++ /dev/null @@ -1,20 +0,0 @@ -description: | - Where status code 403 (Forbidden) is returned then an [NHSDigital-OperationOutcome](https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome) will be included in the body, as detailed below. - Check diagnostics property for specific information regarding the error. - - | issue.details.coding.code | issue.code | Coding System | Description | - | ------------------------- | ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------- | - | REC_FORBIDDEN | forbidden | [BaRS Error Code](https://fhir.nhs.uk/CodeSystem/http-error-codes) | A call attempts to access or operate upon a resource without proper authorisation. | -headers: - X-Correlation-ID: - $ref: '../../headers/response/CorrelationID.yaml' - X-Request-ID: - $ref: '../../headers/response/RequestID.yaml' - Content-Type: - $ref: '../../headers/response/ContentTypeFhirJson.yaml' -content: - application/fhir+json: - schema: - $ref: '../../NHSDigital-OperationOutcome.yaml' - example: - $ref: '../../../examples/NHSDigital-OperationOutcome-403.json' \ No newline at end of file