Package akka.http.scaladsl.model
Class StatusCodes$
- java.lang.Object
-
- akka.http.scaladsl.model.StatusCodes$
-
- All Implemented Interfaces:
ObjectRegistry<java.lang.Object,StatusCode>
public class StatusCodes$ extends java.lang.Object implements ObjectRegistry<java.lang.Object,StatusCode>
-
-
Field Summary
Fields Modifier and Type Field Description static StatusCodes$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description StatusCodes$()
-
Method Summary
-
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 Detail
-
MODULE$
public static final StatusCodes$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
custom
public StatusCode custom(int intValue, java.lang.String reason, java.lang.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
public StatusCode custom(int intValue, java.lang.String reason, java.lang.String defaultMessage)
Create a custom status code with default behavior for its value region.
-
Continue
public StatusCodes.Informational Continue()
-
SwitchingProtocols
public StatusCodes.Informational SwitchingProtocols()
-
Processing
public StatusCodes.Informational Processing()
-
EarlyHints
public StatusCodes.Informational EarlyHints()
-
OK
public StatusCodes.Success OK()
-
Created
public StatusCodes.Success Created()
-
Accepted
public StatusCodes.Success Accepted()
-
NonAuthoritativeInformation
public StatusCodes.Success NonAuthoritativeInformation()
-
NoContent
public StatusCodes.Success NoContent()
-
ResetContent
public StatusCodes.Success ResetContent()
-
PartialContent
public StatusCodes.Success PartialContent()
-
MultiStatus
public StatusCodes.Success MultiStatus()
-
AlreadyReported
public StatusCodes.Success AlreadyReported()
-
IMUsed
public StatusCodes.Success IMUsed()
-
MultipleChoices
public StatusCodes.Redirection MultipleChoices()
-
MovedPermanently
public StatusCodes.Redirection MovedPermanently()
-
Found
public StatusCodes.Redirection Found()
-
SeeOther
public StatusCodes.Redirection SeeOther()
-
NotModified
public StatusCodes.Redirection NotModified()
-
UseProxy
public StatusCodes.Redirection UseProxy()
-
TemporaryRedirect
public StatusCodes.Redirection TemporaryRedirect()
-
PermanentRedirect
public StatusCodes.Redirection PermanentRedirect()
-
BadRequest
public StatusCodes.ClientError BadRequest()
-
Unauthorized
public StatusCodes.ClientError Unauthorized()
-
PaymentRequired
public StatusCodes.ClientError PaymentRequired()
-
Forbidden
public StatusCodes.ClientError Forbidden()
-
NotFound
public StatusCodes.ClientError NotFound()
-
MethodNotAllowed
public StatusCodes.ClientError MethodNotAllowed()
-
NotAcceptable
public StatusCodes.ClientError NotAcceptable()
-
ProxyAuthenticationRequired
public StatusCodes.ClientError ProxyAuthenticationRequired()
-
RequestTimeout
public StatusCodes.ClientError RequestTimeout()
-
Conflict
public StatusCodes.ClientError Conflict()
-
Gone
public StatusCodes.ClientError Gone()
-
LengthRequired
public StatusCodes.ClientError LengthRequired()
-
PreconditionFailed
public StatusCodes.ClientError PreconditionFailed()
-
ContentTooLarge
public StatusCodes.ClientError ContentTooLarge()
-
PayloadTooLarge
public StatusCodes.ClientError PayloadTooLarge()
Deprecated.deprecated in favor of ContentTooLarge. Since 10.4.0.
-
RequestEntityTooLarge
public StatusCodes.ClientError RequestEntityTooLarge()
Deprecated.deprecated in favor of ContentTooLarge. Since 10.4.0.
-
UriTooLong
public StatusCodes.ClientError UriTooLong()
-
RequestUriTooLong
public StatusCodes.ClientError RequestUriTooLong()
Deprecated.deprecated in favor of UriTooLong. Since 10.1.11.
-
UnsupportedMediaType
public StatusCodes.ClientError UnsupportedMediaType()
-
RangeNotSatisfiable
public StatusCodes.ClientError RangeNotSatisfiable()
-
RequestedRangeNotSatisfiable
public StatusCodes.ClientError RequestedRangeNotSatisfiable()
Deprecated.deprecated in favor of RangeNotSatisfiable. Since 10.1.11.
-
ExpectationFailed
public StatusCodes.ClientError ExpectationFailed()
-
ImATeapot
public StatusCodes.ClientError ImATeapot()
-
EnhanceYourCalm
public StatusCodes.ClientError EnhanceYourCalm()
-
MisdirectedRequest
public StatusCodes.ClientError MisdirectedRequest()
-
UnprocessableContent
public StatusCodes.ClientError UnprocessableContent()
-
UnprocessableEntity
public StatusCodes.ClientError UnprocessableEntity()
Deprecated.deprecated in favor of UnprocessableContent. Since 10.4.0.
-
Locked
public StatusCodes.ClientError Locked()
-
FailedDependency
public StatusCodes.ClientError FailedDependency()
-
TooEarly
public StatusCodes.ClientError TooEarly()
-
UnorderedCollection
public StatusCodes.ClientError UnorderedCollection()
Deprecated.Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly. Since 10.1.6.
-
UpgradeRequired
public StatusCodes.ClientError UpgradeRequired()
-
PreconditionRequired
public StatusCodes.ClientError PreconditionRequired()
-
TooManyRequests
public StatusCodes.ClientError TooManyRequests()
-
RequestHeaderFieldsTooLarge
public StatusCodes.ClientError RequestHeaderFieldsTooLarge()
-
RetryWith
public StatusCodes.ClientError RetryWith()
-
BlockedByParentalControls
public StatusCodes.ClientError BlockedByParentalControls()
-
UnavailableForLegalReasons
public StatusCodes.ClientError UnavailableForLegalReasons()
-
InternalServerError
public StatusCodes.ServerError InternalServerError()
-
NotImplemented
public StatusCodes.ServerError NotImplemented()
-
BadGateway
public StatusCodes.ServerError BadGateway()
-
ServiceUnavailable
public StatusCodes.ServerError ServiceUnavailable()
-
GatewayTimeout
public StatusCodes.ServerError GatewayTimeout()
-
HttpVersionNotSupported
public StatusCodes.ServerError HttpVersionNotSupported()
-
HTTPVersionNotSupported
public StatusCodes.ServerError HTTPVersionNotSupported()
Deprecated.deprecated in favor of HttpVersionNotSupported. Since 10.1.11.
-
VariantAlsoNegotiates
public StatusCodes.ServerError VariantAlsoNegotiates()
-
InsufficientStorage
public StatusCodes.ServerError InsufficientStorage()
-
LoopDetected
public StatusCodes.ServerError LoopDetected()
-
BandwidthLimitExceeded
public StatusCodes.ServerError BandwidthLimitExceeded()
-
NotExtended
public StatusCodes.ServerError NotExtended()
-
NetworkAuthenticationRequired
public StatusCodes.ServerError NetworkAuthenticationRequired()
-
NetworkReadTimeout
public StatusCodes.ServerError NetworkReadTimeout()
-
NetworkConnectTimeout
public StatusCodes.ServerError NetworkConnectTimeout()
-
-