@GET
@Path("/deploy/status")
public void getDeployStatus(HttpRequest request, HttpResponder responder) {
try {
String accountId = getAuthenticatedAccountId(request);
DeployStatus status = dstatus(accountId);
LOG.trace("Deployment status call at AppFabricHttpHandler , Status: {}", status);
responder.sendJson(HttpResponseStatus.OK, new Status(status.getCode(), status.getMessage()));
} catch (SecurityException e) {
responder.sendStatus(HttpResponseStatus.UNAUTHORIZED);
} catch (Throwable e) {
LOG.error("Got exception:", e);
responder.sendStatus(HttpResponseStatus.INTERNAL_SERVER_ERROR);