Package akka.http.scaladsl.model
Class StatusCodes.HttpFailure
- java.lang.Object
-
- akka.http.javadsl.model.StatusCode
-
- akka.http.scaladsl.model.StatusCode
-
- akka.http.scaladsl.model.StatusCodes.HttpFailure
-
- All Implemented Interfaces:
LazyValueBytesRenderable
,Renderable
- Direct Known Subclasses:
StatusCodes.ClientError
,StatusCodes.ServerError
- Enclosing class:
- StatusCodes
protected abstract static class StatusCodes.HttpFailure extends StatusCode
-
-
Constructor Summary
Constructors Constructor Description HttpFailure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsEntity()
Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.boolean
isFailure()
Returns if the status-code represents failure.boolean
isRedirection()
Returns if the status-code is a redirection status code.boolean
isSuccess()
Returns if the status-code represents success.-
Methods inherited from class akka.http.scaladsl.model.StatusCode
defaultMessage, int2StatusCode, intValue, reason, value
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.LazyValueBytesRenderable
render, toString, valueBytes
-
-
-
-
Method Detail
-
allowsEntity
public boolean allowsEntity()
Description copied from class:StatusCode
Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.- Specified by:
allowsEntity
in classStatusCode
-
isFailure
public boolean isFailure()
Description copied from class:StatusCode
Returns if the status-code represents failure.- Specified by:
isFailure
in classStatusCode
-
isRedirection
public boolean isRedirection()
Description copied from class:StatusCode
Returns if the status-code is a redirection status code.- Specified by:
isRedirection
in classStatusCode
-
isSuccess
public boolean isSuccess()
Description copied from class:StatusCode
Returns if the status-code represents success.- Specified by:
isSuccess
in classStatusCode
-
-