Status

sealed abstract case class Status extends Ordered[Status] with Renderable

Representation of the HTTP response code and reason

'''Note: ''' the reason is not important to the protocol and is not considered in equality checks.

Value parameters:
code

HTTP status code

reason

reason for the response. eg, OK

See also:
Companion:
object
Source:
Status.scala
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(that: Status): Int
override def render(writer: Writer): writer.type
Definition Classes
Source:
Status.scala

A sanitized reason phrase. Blank if reason is invalid per RFC7230, otherwise equivalent to reason.

A sanitized reason phrase. Blank if reason is invalid per RFC7230, otherwise equivalent to reason.

Source:
Status.scala
def unapply[F[_]](msg: Response[F]): Option[Response[F]]

Helpers for for matching against a Response

Helpers for for matching against a Response

Source:
Status.scala

Deprecated methods

@deprecated("Custom status phrases will be removed in 1.0. They are an optional feature, pose a security risk, and already unsupported on some backends.", "0.22.6")
def withReason(reason: String): Status
Deprecated
Source:
Status.scala

Inherited methods

def <(that: Status): Boolean
Inherited from:
Ordered
def <=(that: Status): Boolean
Inherited from:
Ordered
def >(that: Status): Boolean
Inherited from:
Ordered
def >=(that: Status): Boolean
Inherited from:
Ordered
def compareTo(that: Status): Int
Inherited from:
Ordered
Inherited from:
Product

Generates a String rendering of this object

Generates a String rendering of this object

Inherited from:
Renderable
Source:
Renderable.scala
override def toString: String
Definition Classes
Renderable -> Any
Inherited from:
Renderable
Source:
Renderable.scala