HTTP_UNAUTHORIZED: // 401 return Status.Code.UNAUTHENTICATED; case HttpURLConnection.HTTP_FORBIDDEN: // 403 return Status.Code.PERMISSION_DENIED; case HttpURLConnection.HTTP_NOT_FOUND: // 404 return Status.Code.UNIMPLEMENTED; case 429: // Too Many Requests case HttpURLConnection.HTTP_BAD_GATEWAY...
get(1).getStatusInfo()); assertEquals("404", responses.get(2).getStatusCode()); assertEquals("Not Found", responses.get(2).getStatusInfo()); assertEquals("200", responses.get(3).getStatusCode()); assertEquals("OK", responses.get(3).getStatusInfo()); } ...
7 openj9 Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo. eclipse-openj9 2903 8 onedev Self-...
exchange(getDocumentPath(id), HttpMethod.GET, httpEntity, documentClass, uriVariables).getBody(); if (response == null) { throw new HttpClientErrorException(HttpStatus.NOT_FOUND); } else { ReflectionUtils.setField(documentId, response, id); return response; } } ...