Class StatusCodes
java.lang.Object
org.apache.pekko.http.scaladsl.model.StatusCodes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic classprotected static classprotected static classstatic final classstatic classstatic final classstatic classstatic final classstatic classstatic final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusCodes.SuccessAccepted()static StatusCodes.Successstatic StatusCodes.ServerErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ServerErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorConflict()static StatusCodes.ClientErrorstatic StatusCodes.InformationalContinue()static StatusCodes.SuccessCreated()static StatusCodeCreate a custom status code with default behavior for its value region.static StatusCodeCreate a custom status code and allow full customization of behavior.static StatusCodes.Informationalstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.RedirectionFound()static StatusCodes.ServerErrorstatic scala.Option<V>getForKey(K key) static scala.Option<V>getForKeyCaseInsensitive(String key, scala.$less$colon$less<String, K> conv) static StatusCodes.ClientErrorGone()static StatusCodes.ServerErrorstatic StatusCodes.ClientErrorstatic StatusCodes.SuccessIMUsed()static StatusCodes.ServerErrorstatic StatusCodes.ServerErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorLocked()static StatusCodes.ServerErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.Redirectionstatic StatusCodes.Redirectionstatic StatusCodes.Successstatic StatusCodes.ServerErrorstatic StatusCodes.ServerErrorstatic StatusCodes.ServerErrorstatic StatusCodes.Successstatic StatusCodes.Successstatic StatusCodes.ClientErrorstatic StatusCodes.ServerErrorstatic StatusCodes.ClientErrorNotFound()static StatusCodes.ServerErrorstatic StatusCodes.Redirectionstatic StatusCodes.SuccessOK()static scala.collection.immutable.Map<K,V> static voidorg$apache$pekko$http$impl$util$ObjectRegistry$$_registry_$eq(scala.collection.immutable.Map<K, V> x$1) static StatusCodes.Successstatic StatusCodes.ClientErrorDeprecated.deprecated in favor of ContentTooLarge.static StatusCodes.ClientErrorstatic StatusCodes.Redirectionstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.Informationalstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorprotected static final Objectregister(K key, V obj) static StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.Successstatic StatusCodes.ClientErrorstatic StatusCodes.RedirectionSeeOther()static StatusCodes.ServerErrorstatic StatusCodes.Informationalstatic StatusCodes.Redirectionstatic StatusCodes.ClientErrorTooEarly()static StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorDeprecated.deprecated in favor of UnprocessableContent.static StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.ClientErrorstatic StatusCodes.RedirectionUseProxy()static StatusCodes.ServerError
-
Constructor Details
-
StatusCodes
public StatusCodes()
-
-
Method Details
-
custom
public static StatusCode custom(int intValue, String reason, String defaultMessage, boolean isSuccess, boolean allowsEntity) Create a custom status code and allow full customization of behavior. The value ofallowsEntitychanges the parser behavior: If it is set to true, a response with this status code is required to include aContent-Lengthheader to be parsed correctly when keep-alive is enabled (which is the default in HTTP/1.1). IfallowsEntityis false, an entity is never expected.- Parameters:
intValue- (undocumented)reason- (undocumented)defaultMessage- (undocumented)isSuccess- (undocumented)allowsEntity- (undocumented)- Returns:
- (undocumented)
-
custom
Create a custom status code with default behavior for its value region. -
Continue
-
SwitchingProtocols
-
Processing
-
EarlyHints
-
OK
-
Created
-
Accepted
-
NonAuthoritativeInformation
-
NoContent
-
ResetContent
-
PartialContent
-
MultiStatus
-
AlreadyReported
-
IMUsed
-
MultipleChoices
-
MovedPermanently
-
Found
-
SeeOther
-
NotModified
-
UseProxy
-
TemporaryRedirect
-
PermanentRedirect
-
BadRequest
-
Unauthorized
-
PaymentRequired
-
Forbidden
-
NotFound
-
MethodNotAllowed
-
NotAcceptable
-
ProxyAuthenticationRequired
-
RequestTimeout
-
Conflict
-
Gone
-
LengthRequired
-
PreconditionFailed
-
ContentTooLarge
-
PayloadTooLarge
Deprecated.deprecated in favor of ContentTooLarge. Since 1.1.0. -
UriTooLong
-
UnsupportedMediaType
-
RangeNotSatisfiable
-
ExpectationFailed
-
ImATeapot
-
EnhanceYourCalm
-
MisdirectedRequest
-
UnprocessableContent
-
UnprocessableEntity
Deprecated.deprecated in favor of UnprocessableContent. Since 1.1.0. -
Locked
-
FailedDependency
-
TooEarly
-
UpgradeRequired
-
PreconditionRequired
-
TooManyRequests
-
RequestHeaderFieldsTooLarge
-
RetryWith
-
BlockedByParentalControls
-
InternalServerError
-
NotImplemented
-
BadGateway
-
GatewayTimeout
-
HttpVersionNotSupported
-
VariantAlsoNegotiates
-
InsufficientStorage
-
LoopDetected
-
BandwidthLimitExceeded
-
NotExtended
-
NetworkAuthenticationRequired
-
NetworkReadTimeout
-
NetworkConnectTimeout
-
org$apache$pekko$http$impl$util$ObjectRegistry$$_registry
public static scala.collection.immutable.Map<K,V> org$apache$pekko$http$impl$util$ObjectRegistry$$_registry() -
org$apache$pekko$http$impl$util$ObjectRegistry$$_registry_$eq
public static void org$apache$pekko$http$impl$util$ObjectRegistry$$_registry_$eq(scala.collection.immutable.Map<K, V> x$1) -
register
-
getForKey
public static scala.Option<V> getForKey(K key) -
getForKeyCaseInsensitive
-