object StatusCodes extends ObjectRegistry[Int, StatusCode]

Source
StatusCode.scala
Linear Supertypes
ObjectRegistry[Int, StatusCode], AnyRef, Any
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatusCodes
  2. ObjectRegistry
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class ClientError extends HttpFailure with Product with Serializable
  2. final case class CustomStatusCode extends StatusCode with Product with Serializable
  3. final case class Informational extends HttpSuccess with Product with Serializable
  4. final case class Redirection extends HttpSuccess with Product with Serializable
  5. final case class ServerError extends HttpFailure with Product with Serializable
  6. final case class Success extends HttpSuccess with Product with Serializable

Value Members

  1. val Accepted: Success
  2. val AlreadyReported: Success
  3. val BadGateway: ServerError
  4. val BadRequest: ClientError
  5. val BandwidthLimitExceeded: ServerError
  6. val BlockedByParentalControls: ClientError
  7. val Conflict: ClientError
  8. val ContentTooLarge: ClientError
  9. val Continue: Informational
  10. val Created: Success
  11. val EarlyHints: Informational
  12. val EnhanceYourCalm: ClientError
  13. val ExpectationFailed: ClientError
  14. val FailedDependency: ClientError
  15. val Forbidden: ClientError
  16. val Found: Redirection
  17. val GatewayTimeout: ServerError
  18. val Gone: ClientError
  19. val HttpVersionNotSupported: ServerError
  20. val IMUsed: Success
  21. val ImATeapot: ClientError
  22. val InsufficientStorage: ServerError
  23. val InternalServerError: ServerError
  24. val LengthRequired: ClientError
  25. val Locked: ClientError
  26. val LoopDetected: ServerError
  27. val MethodNotAllowed: ClientError
  28. val MisdirectedRequest: ClientError
  29. val MovedPermanently: Redirection
  30. val MultiStatus: Success
  31. val MultipleChoices: Redirection
  32. val NetworkAuthenticationRequired: ServerError
  33. val NetworkConnectTimeout: ServerError
  34. val NetworkReadTimeout: ServerError
  35. val NoContent: Success
  36. val NonAuthoritativeInformation: Success
  37. val NotAcceptable: ClientError
  38. val NotExtended: ServerError
  39. val NotFound: ClientError
  40. val NotImplemented: ServerError
  41. val NotModified: Redirection
  42. val OK: Success
  43. val PartialContent: Success
  44. val PaymentRequired: ClientError
  45. val PermanentRedirect: Redirection
  46. val PreconditionFailed: ClientError
  47. val PreconditionRequired: ClientError
  48. val Processing: Informational
  49. val ProxyAuthenticationRequired: ClientError
  50. val RangeNotSatisfiable: ClientError
  51. val RequestHeaderFieldsTooLarge: ClientError
  52. val RequestTimeout: ClientError
  53. val ResetContent: Success
  54. val RetryWith: ClientError
  55. val SeeOther: Redirection
  56. val ServiceUnavailable: ServerError
  57. val SwitchingProtocols: Informational
  58. val TemporaryRedirect: Redirection
  59. val TooEarly: ClientError
  60. val TooManyRequests: ClientError
  61. val Unauthorized: ClientError
  62. val UnavailableForLegalReasons: ClientError
  63. val UnprocessableContent: ClientError
  64. val UnsupportedMediaType: ClientError
  65. val UpgradeRequired: ClientError
  66. val UriTooLong: ClientError
  67. val UseProxy: Redirection
  68. val VariantAlsoNegotiates: ServerError
  69. def custom(intValue: Int, reason: String, defaultMessage: String = ""): StatusCode

    Create a custom status code with default behavior for its value region.

  70. 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 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.

  71. def getForKey(key: Int): Option[StatusCode]
    Definition Classes
    ObjectRegistry
  72. def getForKeyCaseInsensitive(key: String)(implicit conv: <:<[String, Int]): Option[StatusCode]
    Definition Classes
    ObjectRegistry

Deprecated Value Members

  1. val HTTPVersionNotSupported: ServerError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.1.11) deprecated in favor of HttpVersionNotSupported

  2. val PayloadTooLarge: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.4.0) deprecated in favor of ContentTooLarge

  3. val RequestEntityTooLarge: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.4.0) deprecated in favor of ContentTooLarge

  4. val RequestUriTooLong: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.1.11) deprecated in favor of UriTooLong

  5. val RequestedRangeNotSatisfiable: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.1.11) deprecated in favor of RangeNotSatisfiable

  6. val UnorderedCollection: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.1.6) Non-standard Unordered Collection should not be used, deprecated in favor of TooEarly

  7. val UnprocessableEntity: ClientError
    Annotations
    @deprecated
    Deprecated

    (Since version 10.4.0) deprecated in favor of UnprocessableContent