Class StatusCodes.CustomStatusCode
java.lang.Object
org.apache.pekko.http.javadsl.model.StatusCode
org.apache.pekko.http.scaladsl.model.StatusCode
org.apache.pekko.http.scaladsl.model.StatusCodes.CustomStatusCode
- All Implemented Interfaces:
- Serializable,- LazyValueBytesRenderable,- Renderable,- scala.Equals,- scala.Product
- Enclosing class:
- StatusCodes
public static final class StatusCodes.CustomStatusCode
extends StatusCode
implements scala.Product, Serializable
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCustomStatusCode(int intValue, String reason, String defaultMessage, boolean isSuccess, boolean allowsEntity) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns if a response with this status-code is allowed to be accompanied with a non-empty entity.Returns the default message to be included as the content of an Http response with this status-code.intintValue()Returns the numeric code of this status code.booleanReturns if the status-code represents failure.booleanReturns if the status-code is a redirection status code.booleanReturns if the status-code represents success.reason()Returns the reason message for this status code.Methods inherited from class org.apache.pekko.http.scaladsl.model.StatusCodeint2StatusCode, valueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface org.apache.pekko.http.impl.util.LazyValueBytesRenderablerender, toString, valueBytesMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
CustomStatusCode
 
- 
- 
Method Details- 
intValuepublic int intValue()Description copied from class:StatusCodeReturns the numeric code of this status code.- Specified by:
- intValuein class- StatusCode
 
- 
reasonDescription copied from class:StatusCodeReturns the reason message for this status code.- Specified by:
- reasonin class- StatusCode
 
- 
defaultMessageDescription copied from class:StatusCodeReturns the default message to be included as the content of an Http response with this status-code.- Specified by:
- defaultMessagein class- StatusCode
 
- 
isSuccesspublic boolean isSuccess()Description copied from class:StatusCodeReturns if the status-code represents success.- Specified by:
- isSuccessin class- StatusCode
 
- 
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
 
 
-