object StatusCodes extends ObjectRegistry[Int, StatusCode]
- Alphabetic
- By Inheritance
- StatusCodes
- ObjectRegistry
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class ClientError extends HttpFailure with Product with Serializable
- final case class CustomStatusCode extends StatusCode with Product with Serializable
- sealed abstract class HttpFailure extends StatusCode
- Attributes
- protected
- sealed abstract class HttpSuccess extends StatusCode
- Attributes
- protected
- final case class Informational extends HttpSuccess with Product with Serializable
- final case class Redirection extends HttpSuccess with Product with Serializable
- final case class ServerError extends HttpFailure with Product with Serializable
- final case class Success extends HttpSuccess with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Accepted: Success
- val AlreadyReported: Success
- val BadGateway: ServerError
- val BadRequest: ClientError
- val BandwidthLimitExceeded: ServerError
- val BlockedByParentalControls: ClientError
- val Conflict: ClientError
- val ContentTooLarge: ClientError
- val Continue: Informational
- val Created: Success
- val EarlyHints: Informational
- val EnhanceYourCalm: ClientError
- val ExpectationFailed: ClientError
- val FailedDependency: ClientError
- val Forbidden: ClientError
- val Found: Redirection
- val GatewayTimeout: ServerError
- val Gone: ClientError
- val HttpVersionNotSupported: ServerError
- val IMUsed: Success
- val ImATeapot: ClientError
- val InsufficientStorage: ServerError
- val InternalServerError: ServerError
- val LengthRequired: ClientError
- val Locked: ClientError
- val LoopDetected: ServerError
- val MethodNotAllowed: ClientError
- val MisdirectedRequest: ClientError
- val MovedPermanently: Redirection
- val MultiStatus: Success
- val MultipleChoices: Redirection
- val NetworkAuthenticationRequired: ServerError
- val NetworkConnectTimeout: ServerError
- val NetworkReadTimeout: ServerError
- val NoContent: Success
- val NonAuthoritativeInformation: Success
- val NotAcceptable: ClientError
- val NotExtended: ServerError
- val NotFound: ClientError
- val NotImplemented: ServerError
- val NotModified: Redirection
- val OK: Success
- val PartialContent: Success
- val PaymentRequired: ClientError
- val PermanentRedirect: Redirection
- val PreconditionFailed: ClientError
- val PreconditionRequired: ClientError
- val Processing: Informational
- val ProxyAuthenticationRequired: ClientError
- val RangeNotSatisfiable: ClientError
- val RequestHeaderFieldsTooLarge: ClientError
- val RequestTimeout: ClientError
- val ResetContent: Success
- val RetryWith: ClientError
- val SeeOther: Redirection
- val ServiceUnavailable: ServerError
- val SwitchingProtocols: Informational
- val TemporaryRedirect: Redirection
- val TooEarly: ClientError
- val TooManyRequests: ClientError
- val Unauthorized: ClientError
- val UnavailableForLegalReasons: ClientError
- val UnprocessableContent: ClientError
- val UnsupportedMediaType: ClientError
- val UpgradeRequired: ClientError
- val UriTooLong: ClientError
- val UseProxy: Redirection
- val VariantAlsoNegotiates: ServerError
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def custom(intValue: Int, reason: String, defaultMessage: String = ""): StatusCode
Create a custom status code with default behavior for its value region.
- def custom(intValue: Int, reason: String, defaultMessage: String, isSuccess: Boolean, allowsEntity: Boolean): StatusCode
Create a custom status code and allow full customization of behavior.
Create a custom status code and allow full customization of behavior. The value of
allowsEntity
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. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getForKey(key: Int): Option[StatusCode]
- Definition Classes
- ObjectRegistry
- def getForKeyCaseInsensitive(key: String)(implicit conv: <:<[String, Int]): Option[StatusCode]
- Definition Classes
- ObjectRegistry
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def register(key: Int, obj: StatusCode): obj.type
- Attributes
- protected
- Definition Classes
- ObjectRegistry
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- val HTTPVersionNotSupported: ServerError
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.1.11) deprecated in favor of HttpVersionNotSupported
- val PayloadTooLarge: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.0) deprecated in favor of ContentTooLarge
- val RequestEntityTooLarge: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.1.11) deprecated in favor of PayloadTooLarge, which was later deprecated in favor of ContentTooLarge (please switch to ContentTooLarge)
- val RequestUriTooLong: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.1.11) deprecated in favor of UriTooLong
- val RequestedRangeNotSatisfiable: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.1.11) deprecated in favor of RangeNotSatisfiable
- val UnorderedCollection: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.1.6) Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly
- val UnprocessableEntity: ClientError
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.0) deprecated in favor of UnprocessableContent