Class StatusCodes.HttpFailure
java.lang.Object
org.apache.pekko.http.javadsl.model.StatusCode
org.apache.pekko.http.scaladsl.model.StatusCode
org.apache.pekko.http.scaladsl.model.StatusCodes.HttpFailure
- All Implemented Interfaces:
- LazyValueBytesRenderable,- Renderable
- Direct Known Subclasses:
- StatusCodes.ClientError,- StatusCodes.ServerError
- Enclosing class:
- StatusCodes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns if a response with this status-code is allowed to be accompanied with a non-empty entity.booleanReturns if the status-code represents failure.booleanReturns if the status-code is a redirection status code.booleanReturns if the status-code represents success.Methods inherited from class org.apache.pekko.http.scaladsl.model.StatusCodedefaultMessage, int2StatusCode, intValue, reason, valueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.LazyValueBytesRenderablerender, toString, valueBytes
- 
Constructor Details- 
HttpFailurepublic HttpFailure()
 
- 
- 
Method Details- 
allowsEntitypublic boolean allowsEntity()Description copied from class:StatusCodeReturns if a response with this status-code is allowed to be accompanied with a non-empty entity.- Specified by:
- allowsEntityin class- StatusCode
 
- 
isFailurepublic boolean isFailure()Description copied from class:StatusCodeReturns if the status-code represents failure.- Specified by:
- isFailurein class- StatusCode
 
- 
isRedirectionpublic boolean isRedirection()Description copied from class:StatusCodeReturns if the status-code is a redirection status code.- Specified by:
- isRedirectionin class- StatusCode
 
- 
isSuccesspublic boolean isSuccess()Description copied from class:StatusCodeReturns if the status-code represents success.- Specified by:
- isSuccessin class- StatusCode
 
 
-