abstract class StatusCode extends AnyRef

Represents an Http status-code and message. See StatusCodes for the set of predefined status-codes.

Source
StatusCode.java
See also

StatusCodes for convenience access to often used values.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatusCode
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StatusCode()

Abstract Value Members

  1. abstract def allowsEntity(): Boolean

    Returns if a response with this status-code is allowed to be accompanied with a non-empty entity.

  2. abstract def defaultMessage(): String

    Returns the default message to be included as the content of an Http response with this status-code.

  3. abstract def intValue(): Int

    Returns the numeric code of this status code.

  4. abstract def isFailure(): Boolean

    Returns if the status-code represents failure.

  5. abstract def isRedirection(): Boolean

    Returns if the status-code is a redirection status code.

  6. abstract def isSuccess(): Boolean

    Returns if the status-code represents success.

  7. abstract def reason(): String

    Returns the reason message for this status code.