public static Result restExceptionStatuses () {
    JsonObject parent = new JsonObject();
    Set<String> schedulersConfigured = InfoExtractor.getSchedulersConfiguredForException();
    JsonObject exception = new JsonObject();
    if(schedulersConfigured.isEmpty()) {
      exception.addProperty(JsonKeys.EXCEPTION_ENABLED, "false");
      exception.add(JsonKeys.SCHEDULERS, new JsonArray());

      exception.addProperty(JsonKeys.ID, "exception-status");
      parent.add(JsonKeys.EXCEPTION_STATUSES, exception);
      return ok(new Gson().toJson(parent));
    }

    JsonArray schedulers = new JsonArray();
    for(String scheduler: schedulersConfigured) {
      JsonObject schedulerObject = new JsonObject();
      schedulerObject.addProperty(JsonKeys.NAME, scheduler);
      schedulers.add(schedulerObject);
    }
    exception.addProperty(JsonKeys.EXCEPTION_ENABLED, "true");
    exception.add(JsonKeys.SCHEDULERS, schedulers);
    exception.addProperty(JsonKeys.ID, "exception-status");
    parent.add(JsonKeys.EXCEPTION_STATUSES, exception);
    return ok(new Gson().toJson(parent));
  }
Returns the status of the exception feature.
return: JsonObject corresponding to the exception status
response:

{
"exception-statuses": {
"exceptionenabled": "true",
"schedulers": [
   {
      "name": "azkaban"
   }
 ],
 "id": "exception-status"
 }
}
app/controllers/api/v1/Web.java