Skip to content
Snippets Groups Projects
Commit 387efd35 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'GONRG-6319' into 'master'

GONRG-6319 Data inconsistency handling

See merge request !602
parents a32d9687 5b43a9c6
No related branches found
No related tags found
1 merge request!602GONRG-6319 Data inconsistency handling
Pipeline #163080 failed
......@@ -101,7 +101,7 @@
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-gcp</artifactId>
<version>0.19.0-rc3</version>
<version>0.19.0-rc5</version>
</dependency>
<dependency>
......
......@@ -212,7 +212,7 @@ public class ObmStorage implements ICloudStorage {
throw new AppException(HttpStatus.SC_FORBIDDEN, ACCESS_DENIED_ERROR_REASON, ACCESS_DENIED_ERROR_MSG, e);
} else if (e.getError().getHttpStatusCode() == HttpStatus.SC_NOT_FOUND) {
String msg = String.format("Record with id '%s' does not exist", record.getId());
throw new AppException(HttpStatus.SC_NOT_FOUND, "Record not found", msg);
throw new AppException(HttpStatus.SC_UNPROCESSABLE_ENTITY, "Record not found", msg);
} else {
throw new AppException(HttpStatus.SC_INTERNAL_SERVER_ERROR, "Error during record retrieval",
"An unexpected error on retrieving the record has occurred", e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment