Package akka.http.scaladsl.model
Class StatusCodes
java.lang.Object
akka.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 scala.collection.immutable.Map<K,
V> static void
akka$http$impl$util$ObjectRegistry$$_registry_$eq
(scala.collection.immutable.Map<K, V> x$1) 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.ServerError
Deprecated.deprecated in favor of HttpVersionNotSupported.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 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
Deprecated.deprecated in favor of RangeNotSatisfiable.static StatusCodes.ClientError
Deprecated.deprecated in favor of ContentTooLarge.static StatusCodes.ClientError
static StatusCodes.ClientError
static StatusCodes.ClientError
Deprecated.deprecated in favor of UriTooLong.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
Deprecated.Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly.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 10.4.0. -
RequestEntityTooLarge
Deprecated.deprecated in favor of ContentTooLarge. Since 10.4.0. -
UriTooLong
-
RequestUriTooLong
Deprecated.deprecated in favor of UriTooLong. Since 10.1.11. -
UnsupportedMediaType
-
RangeNotSatisfiable
-
RequestedRangeNotSatisfiable
Deprecated.deprecated in favor of RangeNotSatisfiable. Since 10.1.11. -
ExpectationFailed
-
ImATeapot
-
EnhanceYourCalm
-
MisdirectedRequest
-
UnprocessableContent
-
UnprocessableEntity
Deprecated.deprecated in favor of UnprocessableContent. Since 10.4.0. -
Locked
-
FailedDependency
-
TooEarly
-
UnorderedCollection
Deprecated.Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly. Since 10.1.6. -
UpgradeRequired
-
PreconditionRequired
-
TooManyRequests
-
RequestHeaderFieldsTooLarge
-
RetryWith
-
BlockedByParentalControls
-
InternalServerError
-
NotImplemented
-
BadGateway
-
GatewayTimeout
-
HttpVersionNotSupported
-
HTTPVersionNotSupported
Deprecated.deprecated in favor of HttpVersionNotSupported. Since 10.1.11. -
VariantAlsoNegotiates
-
InsufficientStorage
-
LoopDetected
-
BandwidthLimitExceeded
-
NotExtended
-
NetworkAuthenticationRequired
-
NetworkReadTimeout
-
NetworkConnectTimeout
-
akka$http$impl$util$ObjectRegistry$$_registry
public static scala.collection.immutable.Map<K,V> akka$http$impl$util$ObjectRegistry$$_registry() -
akka$http$impl$util$ObjectRegistry$$_registry_$eq
public static void akka$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
-