We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64f816 commit a28a751Copy full SHA for a28a751
healthcare/v1/src/main/java/snippets/healthcare/fhir/resources/FhirResourceDelete.java
@@ -66,6 +66,10 @@ public static void fhirResourceDelete(String resourceName)
66
.build();
67
68
// Execute the request and process the results.
69
+ // Regardless of whether the operation succeeds or
70
+ // fails, the server returns a 200 OK HTTP status code. To check that the
71
+ // resource was successfully deleted, search for or get the resource and
72
+ // see if it exists.
73
HttpResponse response = httpClient.execute(request);
74
HttpEntity responseEntity = response.getEntity();
75
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
0 commit comments