diff --git a/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java b/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java index 1b2226df3..f0a81d1f0 100644 --- a/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java +++ b/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java @@ -68,5 +68,15 @@ public class GuacamoleException extends Exception { public GuacamoleStatus getStatus() { 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(); + } }