Class StatusCode
java.lang.Object
org.apache.pekko.http.javadsl.model.StatusCode
- Direct Known Subclasses:
- StatusCode
Represents an Http status-code and message. See 
StatusCodes for the set of predefined
 status-codes.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract booleanReturns if a response with this status-code is allowed to be accompanied with a non-empty entity.abstract StringReturns the default message to be included as the content of an Http response with this status-code.abstract intintValue()Returns the numeric code of this status code.abstract booleanReturns if the status-code represents failure.abstract booleanReturns if the status-code is a redirection status code.abstract booleanReturns if the status-code represents success.abstract Stringreason()Returns the reason message for this status code.
- 
Constructor Details- 
StatusCodepublic StatusCode()
 
- 
- 
Method Details- 
intValuepublic abstract int intValue()Returns the numeric code of this status code.
- 
reasonReturns the reason message for this status code.
- 
defaultMessageReturns the default message to be included as the content of an Http response with this status-code.
- 
isSuccesspublic abstract boolean isSuccess()Returns if the status-code represents success.
- 
isFailurepublic abstract boolean isFailure()Returns if the status-code represents failure.
- 
allowsEntitypublic abstract boolean allowsEntity()Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.
- 
isRedirectionpublic abstract boolean isRedirection()Returns if the status-code is a redirection status code.
 
-