} catch (MalformedURLException e) {
throw new OpenShiftException(e, e.getMessage());
} catch (UnauthorizedException e) {
throw new InvalidCredentialsOpenShiftException(url, e, getRestResponse(e));
} catch (NotFoundException e) {
throw new NotFoundOpenShiftException(url, e, getRestResponse(e));
} catch (HttpClientException e) {
RestResponse restResponse = getRestResponse(e);
String message = getMessage(restResponse, e);
throw new OpenShiftEndpointException(
url.toString(), e, restResponse, "Could not request {0}: {1}", url, message);