Status

zio.http.Status
See theStatus companion object
sealed trait Status extends Product, Serializable

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Custom
trait Error
trait ClientError
object BadRequest.type
object Conflict.type
object ExpectationFailed.type
object FailedDependency.type
object Forbidden.type
object Gone.type
object LengthRequired.type
object Locked.type
object MethodNotAllowed.type
object MisdirectedRequest.type
object NotAcceptable.type
object NotFound.type
object PaymentRequired.type
object PreconditionFailed.type
object PreconditionRequired.type
object RequestEntityTooLarge.type
object RequestTimeout.type
object RequestUriTooLong.type
object TooManyRequests.type
object Unauthorized.type
object UnorderedCollection.type
object UnprocessableEntity.type
object UnsupportedMediaType.type
object UpgradeRequired.type
trait ServerError
object BadGateway.type
object GatewayTimeout.type
object InsufficientStorage.type
object InternalServerError.type
object NotExtended.type
object NotImplemented.type
object ServiceUnavailable.type
object VariantAlsoNegotiates.type
object Continue.type
object Processing.type
object SwitchingProtocols.type
trait Redirection
object Found.type
object MovedPermanently.type
object MultipleChoices.type
object NotModified.type
object PermanentRedirect.type
object SeeOther.type
object TemporaryRedirect.type
object UseProxy.type
trait Success
object Accepted.type
object Created.type
object MultiStatus.type
object NoContent.type
object Ok.type
object PartialContent.type
object ResetContent.type
Show all
Self type

Members list

Value members

Concrete methods

def isClientError: Boolean
def isError: Boolean
def isInformational: Boolean
def isRedirection: Boolean
def isServerError: Boolean
def isSuccess: Boolean
def toHttpApp(implicit trace: Trace): Handler[Any, Nothing, Any, Response]

Returns an HttpApp[Any, Nothing] that responses with this http status code.

Returns an HttpApp[Any, Nothing] that responses with this http status code.

Attributes

Returns a Response with empty data and no headers.

Returns a Response with empty data and no headers.

Attributes

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Abstract fields

val code: Int

Returns the status code.

Returns the status code.

Attributes

Concrete fields

lazy val text: String