ResponseStatus

sealed trait ResponseStatus

Defines HTTP response status.

See also:
Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def reasonPhrase: String

Gets reason phrase.

Gets reason phrase.

def statusCode: Int

Gets status code.

Gets status code.

Concrete methods

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

def apply(body: InputStream): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

def apply(body: Array[Byte]): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

def apply(body: String): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

def apply(body: File): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

def isClientError: Boolean

Tests for client error status code.

Tests for client error status code.

def isInformational: Boolean

Tests for informational status code.

Tests for informational status code.

def isRedirection: Boolean

Tests for redirection status code.

Tests for redirection status code.

def isServerError: Boolean

Tests for server error status code.

Tests for server error status code.

def isSuccessful: Boolean

Tests for successful status code.

Tests for successful status code.