public final class WuiForbiddenException extends WuiException
403
is associated to this exception. This exception is intended to be thrown when a request is
properly formatted but the client is forbidden to access. This is the expected exception when a disabled endpoint is
accessed by the client.
As explained in https://en.wikipedia.org/wiki/HTTP_403: "The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated."
Constructor and Description |
---|
WuiForbiddenException(String message) |
WuiForbiddenException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Response.Status |
getStatus()
Associated status.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WuiForbiddenException(String message)
public Response.Status getStatus()
WuiException
getStatus
in class WuiException