String result = request.executeAsString();
if (request.isUnAuthorized())
throw new UnAuthorizedException("Cannot add user " + userName, getUsersUrl());
if (request.isForbidden())
throw new DuplicateNameException("Cannot add user " + userName, getUsersUrl());
if (!request.isSuccessful())
throw new IOException("POST on " + getUsersUrl() + " with payload " + userName + "," + firstName + "," + lastName + "," + email + " not successful: " + result);
return request.getLocation();
}