ResponseStatus

Provides factory for ResponseStatus.

See also
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

object Registry

Contains registered response statuses.

Contains registered response statuses.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(statusCode: Int): ResponseStatus

Gets registered response status for given status code.

Gets registered response status for given status code.

Throws NoSuchElementException if status code is not registered.

def apply(statusCode: Int, reasonPhrase: String): ResponseStatus

Creates response status with supplied status code and reason phrase.

Creates response status with supplied status code and reason phrase.

def get(statusCode: Int): Option[ResponseStatus]

Gets response status for given status code, if registered.

Gets response status for given status code, if registered.