Package akka.http.javadsl.model
Class StatusCode
- java.lang.Object
-
- akka.http.javadsl.model.StatusCode
-
- Direct Known Subclasses:
StatusCode
public abstract class StatusCode extends java.lang.Object
Represents an Http status-code and message. SeeStatusCodes
for the set of predefined status-codes.
-
-
Constructor Summary
Constructors Constructor Description StatusCode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
allowsEntity()
Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.abstract java.lang.String
defaultMessage()
Returns the default message to be included as the content of an Http response with this status-code.abstract int
intValue()
Returns the numeric code of this status code.abstract boolean
isFailure()
Returns if the status-code represents failure.abstract boolean
isRedirection()
Returns if the status-code is a redirection status code.abstract boolean
isSuccess()
Returns if the status-code represents success.abstract java.lang.String
reason()
Returns the reason message for this status code.
-
-
-
Method Detail
-
intValue
public abstract int intValue()
Returns the numeric code of this status code.
-
reason
public abstract java.lang.String reason()
Returns the reason message for this status code.
-
defaultMessage
public abstract java.lang.String defaultMessage()
Returns the default message to be included as the content of an Http response with this status-code.
-
isSuccess
public abstract boolean isSuccess()
Returns if the status-code represents success.
-
isFailure
public abstract boolean isFailure()
Returns if the status-code represents failure.
-
allowsEntity
public abstract boolean allowsEntity()
Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.
-
isRedirection
public abstract boolean isRedirection()
Returns if the status-code is a redirection status code.
-
-