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