Package org.yamcs.http
Class UnauthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.yamcs.http.HttpException
-
- org.yamcs.http.UnauthorizedException
-
- All Implemented Interfaces:
Serializable
public class UnauthorizedException extends HttpException
When the request was valid, but did not pass authentication. (only covers auth, not authz! Use something like 403 or 404 for authz)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnauthorizedException()UnauthorizedException(String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.codec.http.HttpResponseStatusgetStatus()-
Methods inherited from class org.yamcs.http.HttpException
getDetail, isServerError, setDetail, toMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnauthorizedException
public UnauthorizedException()
-
UnauthorizedException
public UnauthorizedException(String message)
-
-
Method Detail
-
getStatus
public io.netty.handler.codec.http.HttpResponseStatus getStatus()
- Specified by:
getStatusin classHttpException
-
-