Package akka.http.scaladsl.model
Class StatusCodes$
java.lang.Object
akka.http.scaladsl.model.StatusCodes$
- All Implemented Interfaces:
ObjectRegistry<Object,
StatusCode>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StatusCodes$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccepted()
Conflict()
Continue()
Created()
Create a custom status code with default behavior for its value region.Create a custom status code and allow full customization of behavior.Found()
Gone()
Deprecated.deprecated in favor of HttpVersionNotSupported.IMUsed()
Locked()
NotFound()
OK()
Deprecated.deprecated in favor of ContentTooLarge.Deprecated.deprecated in favor of RangeNotSatisfiable.Deprecated.deprecated in favor of ContentTooLarge.Deprecated.deprecated in favor of UriTooLong.SeeOther()
TooEarly()
Deprecated.Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly.Deprecated.deprecated in favor of UnprocessableContent.UseProxy()
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.ObjectRegistry
getForKey, getForKeyCaseInsensitive, register
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
StatusCodes$
public StatusCodes$()
-
-
Method Details
-
custom
public 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
-