Class StatusCodes$
java.lang.Object
org.apache.pekko.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()IMUsed()Locked()NotFound()OK()Deprecated.deprecated in favor of ContentTooLarge.SeeOther()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, waitMethods inherited from interface org.apache.pekko.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 ofallowsEntitychanges the parser behavior: If it is set to true, a response with this status code is required to include aContent-Lengthheader to be parsed correctly when keep-alive is enabled (which is the default in HTTP/1.1). IfallowsEntityis 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
-