HttpStatusCode mixin
Represents an HTTP response status code. Implemented by {@link HttpStatus}, but defined as an interface to allow for values not in that enumeration.
@see HTTP Status Code Registry @see List of HTTP status codes - Wikipedia
- Mixin applications
Properties
Methods
-
is1xxInformational(
) → bool - Whether this status code is in the Informational class ({@code 1xx}). @see RFC 2616
-
is2xxSuccessful(
) → bool - Whether this status code is in the Successful class ({@code 2xx}). @see RFC 2616
-
is3xxRedirection(
) → bool - Whether this status code is in the Redirection class ({@code 3xx}). @see RFC 2616
-
is4xxClientError(
) → bool - Whether this status code is in the Client Error class ({@code 4xx}). @see RFC 2616
-
is5xxServerError(
) → bool - Whether this status code is in the Server Error class ({@code 5xx}). @see RFC 2616
-
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()
-
isSameCodeAs(
HttpStatusCode other) → bool - Whether this {@code HttpStatusCode} shares the same integer {@link #value() value} as the other status code.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
int code) → HttpStatusCode - Return an {@code HttpStatusCode} object for the given integer value. @param code the status code as integer @return the corresponding {@code HttpStatusCode} @throws IllegalArgumentException if {@code code} is not a three-digit positive number