public ScanServerException(UniformInterfaceException cause) {
   super(parseErrorMsg(cause), cause);
   this.setStatus(Status.fromStatusCode(cause.getResponse().getStatus()));
 }
Example #2
0
 private void assertResponseStatus(String path, Status expectedStatus) {
   ClientResponse response = get(path);
   assertEquals(expectedStatus.getStatusCode(), response.getStatus());
 }