Add getHttpStatusCode() method to GuacamoleException class.
@@ -69,4 +69,14 @@ public class GuacamoleException extends Exception {
return GuacamoleStatus.SERVER_ERROR;
}
+ /**
+ * Returns the numeric HTTP status code associated with this exception.
+ *
+ * @return
+ * The numeric HTTP status code associated with this exception.
+ */
+ public Integer getHttpStatusCode() {
+ return getStatus().getHttpStatusCode();
+ }
+
}
