publishPageEndpoint.addStatus(preconditionFailed("the page references resources that are no longer present or published"));
publishPageEndpoint.addStatus(notFound("the page was not found"));
publishPageEndpoint.addStatus(forbidden("the page is locked by a different user"));
publishPageEndpoint.addStatus(methodNotAllowed("the site or its content repository is read-only"));
publishPageEndpoint.addStatus(serviceUnavailable("the site or its content repository is temporarily offline"));
publishPageEndpoint.addPathParameter(new Parameter("page", Parameter.Type.String, "The page identifier"));
publishPageEndpoint.addOptionalParameter(new Parameter("startdate", Parameter.Type.String, "The start of the publishing period"));
publishPageEndpoint.addOptionalParameter(new Parameter("enddate", Parameter.Type.String, "The end of the publishing period"));
publishPageEndpoint.addOptionalParameter(new Parameter("asynchronous", Parameter.Type.Boolean, "Whether the call is non-blocking", "false"));
publishPageEndpoint.addOptionalParameter(new Parameter("modified", Parameter.Type.Boolean, "Whether the modification date should be set to match the publishing date", "false"));
publishPageEndpoint.setTestForm(new TestForm());