if (getMethod.getStatusCode() == HTTP_ERROR_AUTH_REQUIRED)
throw new AuthenticationRequiredException(Activator.getDefault().createErrorStatus("Authentication required!", null)); //$NON-NLS-1$
/* In case proxy-authentication required / failed */
if (getMethod.getStatusCode() == HTTP_ERROR_PROXY_AUTH_REQUIRED)
throw new ProxyAuthenticationRequiredException(Activator.getDefault().createErrorStatus("Proxy-Authentication required!", null)); //$NON-NLS-1$
/* If status code is 4xx, throw an IOException with the status code included */
if (getMethod.getStatusCode() >= HTTP_ERRORS)
throw new ConnectionException(Activator.getDefault().createErrorStatus("Server returned HTTP Status " + String.valueOf(getMethod.getStatusCode()), null)); //$NON-NLS-1$