Update response message

4.x.x
Charitha Goonetilleke 7 years ago committed by GitHub
parent 1eb2e54ae8
commit 448ff20baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,7 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
try { try {
if (!DeviceManagerUtil.isPublishOperationResponseEnabled()) { if (!DeviceManagerUtil.isPublishOperationResponseEnabled()) {
return Response.status(Response.Status.BAD_REQUEST.getStatusCode()) return Response.status(Response.Status.BAD_REQUEST.getStatusCode())
.entity("Operation publishing does not exists").build(); .entity("Unable to retrive Geo Device stats. Geo Data publishing does not enabled.").build();
} }
} catch (DeviceManagementException e) { } catch (DeviceManagementException e) {
return Response.status(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode()).entity(e.getMessage()).build(); return Response.status(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode()).entity(e.getMessage()).build();

Loading…
Cancel
Save