public void update() throws AcmeException {
LOG.debug("update");
try (Connection conn = getSession().provider().connect()) {
ClaimBuilder claims = new ClaimBuilder();
claims.putResource("reg");
<BUG>int rc = conn.sendSignedRequest(getLocation(), claims, getSession());
if (rc != HttpURLConnection.HTTP_CREATED && rc != HttpURLConnection.HTTP_ACCEPTED) {

conn.throwAcmeException();
}</BUG>
Map<String, Object> json = conn.readJsonResponse();

public void update() throws AcmeException {
LOG.debug("update");
try (Connection conn = getSession().provider().connect()) {
ClaimBuilder claims = new ClaimBuilder();
claims.putResource("reg");
conn.sendSignedRequest(getLocation(), claims, getSession());
conn.accept(HttpURLConnection.HTTP_CREATED, HttpURLConnection.HTTP_ACCEPTED);
Map<String, Object> json = conn.readJsonResponse();
