Skip to content

Commit eb762db

Browse files
committed
error type change
1 parent 06bdba3 commit eb762db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/EhrResendController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class EhrResendController {
3131

3232
private static final String OPERATION_OUTCOME_URL = "https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-OperationOutcome-1";
33-
public static final String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR";
33+
public static final String FORBIDDEN = "FORBIDDEN";
3434
public static final String INVALID_IDENTIFIER_VALUE = "INVALID_IDENTIFIER_VALUE";
3535

3636
private EhrExtractStatusRepository ehrExtractStatusRepository;
@@ -58,7 +58,7 @@ public ResponseEntity<String> scheduleEhrExtractResend(@PathVariable String conv
5858

5959
if (hasNoErrorsInEhrReceivedAcknowledgement(ehrExtractStatus) && ehrExtractStatus.getError() == null) {
6060

61-
var details = getCodeableConcept(INTERNAL_SERVER_ERROR);
61+
var details = getCodeableConcept(FORBIDDEN);
6262
var diagnostics = "The current resend operation is still in progress. Please wait for it to complete before retrying";
6363
var operationOutcome = createOperationOutcome(OperationOutcome.IssueType.BUSINESSRULE,
6464
OperationOutcome.IssueSeverity.ERROR,

0 commit comments

Comments
 (0)