-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUnauthorized.yaml
More file actions
18 lines (17 loc) · 1.57 KB
/
Unauthorized.yaml
File metadata and controls
18 lines (17 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
description: |
Where status code 401 (Unauthorized) 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 |
| ------------------------- | ---------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ACCESS_DENIED | <ul><li>login</li><li>forbidden</li></ul> | [APIM Error Code](https://fhir.nhs.uk/CodeSystem/NHSD-API-ErrorOrWarningCode) | The request could not be authenticated due to either no credentials being provided or the provided credentials no longer being valid. Callers receiving this code should reauthenticate. |
headers:
X-Correlation-ID:
$ref: '../headers/response/CorrelationID.yaml'
Content-Type:
$ref: '../headers/response/ContentTypeFhirJson.yaml'
content:
application/fhir+json:
schema:
$ref: '../NHSDigital-OperationOutcome.yaml'
example:
$ref: '../../examples/NHSDigital-OperationOutcome-401.json'