final case class Status(code: Int)(reason: String) extends Ordered[Status] with Product with Serializable

Represents a Status. Allows us to manage status values in web calls more easily. Provide a way to match a response to a status or other criteria in a DSL-sort of way.

client.fetch(...) {
 case Status(200)(response) => decode response
 case failedResponse => Task.fail(...)
}

Copied from http4s.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[Status], Comparable[Status], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Status
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Status(code: Int)(reason: String)

Value Members

  1. def <(that: Status): Boolean
    Definition Classes
    Ordered
  2. def <=(that: Status): Boolean
    Definition Classes
    Ordered
  3. def >(that: Status): Boolean
    Definition Classes
    Ordered
  4. def >=(that: Status): Boolean
    Definition Classes
    Ordered
  5. val code: Int
  6. def compare(that: Status): Int
    Definition Classes
    Status → Ordered
  7. def compareTo(that: Status): Int
    Definition Classes
    Ordered → Comparable
  8. def isSuccess: Boolean
  9. val reason: String
  10. val responseClass: ResponseClass
  11. def unapply[F[_]](msg: HttpResponse[F]): Option[HttpResponse[F]]
  12. def withReason(reason: String): Status