Endpoint disableAccount = new Endpoint("/account/{login}/status", Method.DELETE, "disableaccount");
disableAccount.setDescription("Disables the account");
disableAccount.addFormat(Format.xml());
disableAccount.addStatus(ok("the account has been disabled"));
disableAccount.addStatus(notModified("the account is already disabled"));
disableAccount.addStatus(forbidden("insufficient rights to disable the account"));
disableAccount.addStatus(notFound("the account does not exist"));
disableAccount.addStatus(notFound("the site does not exist"));
disableAccount.addStatus(serviceUnavailable("the site is temporarily offline"));
disableAccount.setTestForm(new TestForm());
disableAccount.addPathParameter(new Parameter("login", Parameter.Type.String, "Login name"));