Class StatusCodes
java.lang.Object
org.apache.pekko.http.scaladsl.model.StatusCodes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
static final class
static class
protected static class
protected static class
static final class
static class
static final class
static class
static final class
static class
static final class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusCodes.Success
Accepted()
static StatusCodes.Success
static StatusCodes.ServerError
static StatusCodes.ClientError
static StatusCodes.ServerError
static StatusCodes.ClientError
static StatusCodes.ClientError
Conflict()
static StatusCodes.ClientError
static StatusCodes.Informational
Continue()
static StatusCodes.Success
Created()
static StatusCode
Create a custom status code with default behavior for its value region.static StatusCode
Create a custom status code and allow full customization of behavior.static StatusCodes.Informational
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.Redirection
Found()
static StatusCodes.ServerError
static scala.Option<V>
getForKey
(K key) static scala.Option<V>
getForKeyCaseInsensitive
(String key, scala.$less$colon$less<String, K> conv) static StatusCodes.ClientError
Gone()
static StatusCodes.ServerError
static StatusCodes.ClientError
static StatusCodes.Success
IMUsed()
static StatusCodes.ServerError
static StatusCodes.ServerError
static StatusCodes.ClientError
static StatusCodes.ClientError
Locked()
static StatusCodes.ServerError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.Redirection
static StatusCodes.Redirection
static StatusCodes.Success
static StatusCodes.ServerError
static StatusCodes.ServerError
static StatusCodes.ServerError
static StatusCodes.Success
static StatusCodes.Success
static StatusCodes.ClientError
static StatusCodes.ServerError
static StatusCodes.ClientError
NotFound()
static StatusCodes.ServerError
static StatusCodes.Redirection
static StatusCodes.Success
OK()
static scala.collection.immutable.Map<K,
V> static void
org$apache$pekko$http$impl$util$ObjectRegistry$$_registry_$eq
(scala.collection.immutable.Map<K, V> x$1) static StatusCodes.Success
static StatusCodes.ClientError
Deprecated.deprecated in favor of ContentTooLarge.static StatusCodes.ClientError
static StatusCodes.Redirection
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.Informational
static StatusCodes.ClientError
static StatusCodes.ClientError
protected static final Object
register
(K key, V obj) static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.Success
static StatusCodes.ClientError
static StatusCodes.Redirection
SeeOther()
static StatusCodes.ServerError
static StatusCodes.Informational
static StatusCodes.Redirection
static StatusCodes.ClientError
TooEarly()
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
Deprecated.deprecated in favor of UnprocessableContent.static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.Redirection
UseProxy()
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 ofallowsEntity
changes the parser behavior: If it is set to true, a response with this status code is required to include aContent-Length
header to be parsed correctly when keep-alive is enabled (which is the default in HTTP/1.1). IfallowsEntity
is 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
-