The category is 1=informational, 2=success, 3=redirect, 4=client error, 5=server error.
Specifies whether a body is allowed in the response to which this status is attached.
Specifies whether a body is allowed in the response to which this status is attached.
true if the body may possibly have content; false if the body cannot have content.
True if this instance is a 4xx client error code.
True if this instance is a 1xx informational code.
True if this instance is a 3xx redirection code.
True if this instance is a 5xx server error code.
True if this instance is a 2xx status code.
Expresses an HTTP status line. Status is not a 'case class' although it behaves almost the same as if it were.
The difference is that
equals
only compares the status code, ignoring the message. Therefore, testing values using '==' will produce the obvious result. For exampleval s: Status = ... if (s == Status.S200_OK) { // ... }