public class StatusCodes$ extends java.lang.Object implements ObjectRegistry<java.lang.Object,StatusCode>
Modifier and Type | Field and Description |
---|---|
static StatusCodes$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
StatusCodes$() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getForKey, getForKeyCaseInsensitive, register
public static final StatusCodes$ MODULE$
public StatusCode custom(int intValue, java.lang.String reason, java.lang.String defaultMessage, boolean isSuccess, boolean allowsEntity)
allowsEntity
changes the parser behavior: If it is set to true, a response with this status code is required to include a
Content-Length
header to be parsed correctly when keep-alive is enabled (which is the default in HTTP/1.1).
If allowsEntity
is false, an entity is never expected.intValue
- (undocumented)reason
- (undocumented)defaultMessage
- (undocumented)isSuccess
- (undocumented)allowsEntity
- (undocumented)public StatusCode custom(int intValue, java.lang.String reason, java.lang.String defaultMessage)
public StatusCodes.Informational Continue()
public StatusCodes.Informational SwitchingProtocols()
public StatusCodes.Informational Processing()
public StatusCodes.Informational EarlyHints()
public StatusCodes.Success OK()
public StatusCodes.Success Created()
public StatusCodes.Success Accepted()
public StatusCodes.Success NonAuthoritativeInformation()
public StatusCodes.Success NoContent()
public StatusCodes.Success ResetContent()
public StatusCodes.Success PartialContent()
public StatusCodes.Success MultiStatus()
public StatusCodes.Success AlreadyReported()
public StatusCodes.Success IMUsed()
public StatusCodes.Redirection MultipleChoices()
public StatusCodes.Redirection MovedPermanently()
public StatusCodes.Redirection Found()
public StatusCodes.Redirection SeeOther()
public StatusCodes.Redirection NotModified()
public StatusCodes.Redirection UseProxy()
public StatusCodes.Redirection TemporaryRedirect()
public StatusCodes.Redirection PermanentRedirect()
public StatusCodes.ClientError BadRequest()
public StatusCodes.ClientError Unauthorized()
public StatusCodes.ClientError PaymentRequired()
public StatusCodes.ClientError Forbidden()
public StatusCodes.ClientError NotFound()
public StatusCodes.ClientError MethodNotAllowed()
public StatusCodes.ClientError NotAcceptable()
public StatusCodes.ClientError ProxyAuthenticationRequired()
public StatusCodes.ClientError RequestTimeout()
public StatusCodes.ClientError Conflict()
public StatusCodes.ClientError Gone()
public StatusCodes.ClientError LengthRequired()
public StatusCodes.ClientError PreconditionFailed()
public StatusCodes.ClientError ContentTooLarge()
public StatusCodes.ClientError PayloadTooLarge()
public StatusCodes.ClientError RequestEntityTooLarge()
public StatusCodes.ClientError UriTooLong()
public StatusCodes.ClientError RequestUriTooLong()
public StatusCodes.ClientError UnsupportedMediaType()
public StatusCodes.ClientError RangeNotSatisfiable()
public StatusCodes.ClientError RequestedRangeNotSatisfiable()
public StatusCodes.ClientError ExpectationFailed()
public StatusCodes.ClientError ImATeapot()
public StatusCodes.ClientError EnhanceYourCalm()
public StatusCodes.ClientError MisdirectedRequest()
public StatusCodes.ClientError UnprocessableContent()
public StatusCodes.ClientError UnprocessableEntity()
public StatusCodes.ClientError Locked()
public StatusCodes.ClientError FailedDependency()
public StatusCodes.ClientError TooEarly()
public StatusCodes.ClientError UnorderedCollection()
public StatusCodes.ClientError UpgradeRequired()
public StatusCodes.ClientError PreconditionRequired()
public StatusCodes.ClientError TooManyRequests()
public StatusCodes.ClientError RequestHeaderFieldsTooLarge()
public StatusCodes.ClientError RetryWith()
public StatusCodes.ClientError BlockedByParentalControls()
public StatusCodes.ClientError UnavailableForLegalReasons()
public StatusCodes.ServerError InternalServerError()
public StatusCodes.ServerError NotImplemented()
public StatusCodes.ServerError BadGateway()
public StatusCodes.ServerError ServiceUnavailable()
public StatusCodes.ServerError GatewayTimeout()
public StatusCodes.ServerError HttpVersionNotSupported()
public StatusCodes.ServerError HTTPVersionNotSupported()
public StatusCodes.ServerError VariantAlsoNegotiates()
public StatusCodes.ServerError InsufficientStorage()
public StatusCodes.ServerError LoopDetected()
public StatusCodes.ServerError BandwidthLimitExceeded()
public StatusCodes.ServerError NotExtended()
public StatusCodes.ServerError NetworkAuthenticationRequired()
public StatusCodes.ServerError NetworkReadTimeout()
public StatusCodes.ServerError NetworkConnectTimeout()