Header proxyReturnedErrorHeader = httpResponse.getFirstHeader(NEXUS_MISSING_ARTIFACT_HEADER);
boolean proxyReturnedError =
proxyReturnedErrorHeader != null && Boolean.valueOf(proxyReturnedErrorHeader.getValue());
if (statusCode == HttpStatus.SC_FORBIDDEN) {
throw new RemoteAccessDeniedException(repository, methodUri.toASCIIString(),
httpResponse.getStatusLine().getReasonPhrase());
}
else if (statusCode == HttpStatus.SC_UNAUTHORIZED) {
throw new RemoteAuthenticationNeededException(repository,
httpResponse.getStatusLine().getReasonPhrase());