Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 274739
Collapse All | Expand All

(-)src/org/eclipse/equinox/internal/p2/repository/RepositoryStatus.java (-2 / +2 lines)
Lines 103-109 Link Here
103
				return NLS.bind(Messages.TransportErrorTranslator_510, toDownload);
103
				return NLS.bind(Messages.TransportErrorTranslator_510, toDownload);
104
104
105
			default :
105
			default :
106
				return NLS.bind(Messages.TransportErrorTranslator_UnknownErrorCode + Integer.toString(code), toDownload);
106
				return NLS.bind(Messages.TransportErrorTranslator_UnknownErrorCode, Integer.toString(code), toDownload);
107
		}
107
		}
108
	}
108
	}
109
109
Lines 146-152 Link Here
146
			// Switch on error codes in the HTTP error code range 
146
			// Switch on error codes in the HTTP error code range 
147
			if (code >= 400 && code <= 600) {
147
			if (code >= 400 && code <= 600) {
148
				int provisionCode = ProvisionException.REPOSITORY_FAILED_READ;
148
				int provisionCode = ProvisionException.REPOSITORY_FAILED_READ;
149
				if (code == 401 || code == 500)
149
				if (code == 401 || code == 403 || code == 407)
150
					provisionCode = ProvisionException.REPOSITORY_FAILED_AUTHENTICATION;
150
					provisionCode = ProvisionException.REPOSITORY_FAILED_AUTHENTICATION;
151
				else if (code == 404)
151
				else if (code == 404)
152
					provisionCode = ProvisionException.ARTIFACT_NOT_FOUND;
152
					provisionCode = ProvisionException.ARTIFACT_NOT_FOUND;

Return to bug 274739