in common/src/main/java/org/jetbrains/teamcity/vault/support/VaultResponses.java [57:69]
public static VaultException buildException(HttpStatusCodeException e) {
Assert.notNull(e, "HttpStatusCodeException must not be null");
String message = VaultResponses.getError(e);
if (StringUtils.hasText(message)) {
return new VaultException(String.format("Status %s: %s", e.getStatusCode(),
message), e);
}
return new VaultException(String.format("Status %s", e.getStatusCode()), e);
}