DefaultHttpStatusCode class
Default implementation of {@link HttpStatusCode}.
- Mixed-in types
Constructors
- DefaultHttpStatusCode(int value)
Properties
Methods
-
is1xxInformational(
) → bool -
Whether this status code is in the Informational class ({@code 1xx}).
@see RFC 2616
override
-
is2xxSuccessful(
) → bool -
Whether this status code is in the Successful class ({@code 2xx}).
@see RFC 2616
override
-
is3xxRedirection(
) → bool -
Whether this status code is in the Redirection class ({@code 3xx}).
@see RFC 2616
override
-
is4xxClientError(
) → bool -
Whether this status code is in the Client Error class ({@code 4xx}).
@see RFC 2616
override
-
is5xxServerError(
) → bool -
Whether this status code is in the Server Error class ({@code 5xx}).
@see RFC 2616
override
-
isError(
) → bool -
Whether this status code is in the Client or Server Error class
@see RFC 2616
@see RFC 2616
({@code 4xx} or {@code 5xx}).
@see #is4xxClientError()
@see #is5xxServerError()
override
-
isSameCodeAs(
HttpStatusCode other) → bool -
Whether this {@code HttpStatusCode} shares the same integer {@link #value() value} as the other status code.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override